Error when passing a PARM

Posted on 2004-11-23
Last Modified: 2012-06-27
I am attempting to pass a PARM to a program of mine and it is generating an error: MCH1202.  I did the DSPMSGD for the error and it is telling me that I have a decimal error but I am not sure how to fix it.

Here is the relevant code:

In the program I have the following lines to invoke the PARMS:

C     *entry        plist                                        
C                   parm                    SSN               9 0

the physical file that I am using this over has the following field defined as SSN:

      A            SSN            9S 0

I am sure that it is something that I am just overlooking or forgot to consider, so any comment or suggestion would be appreciated.

Question by:dpalme
    LVL 14

    Accepted Solution

    Ahhhh the joys of RPG - we have all been there:-)

    your SSN in the DDS is a signed numeric and on your parm it is a packed numeric (RPG default).

    in your rpg you need a D spec to declare ssn with a data type of S

    Dssn              s              9s 0      


    LVL 1

    Author Comment

    Do I still leave the 9  0 in the parm line ?

    LVL 1

    Author Comment

    I still seem to have the same error.  So I went back and changed the physical file to packed decimal and excluded the D spec....but I am still getting the same error.

    LVL 1

    Author Comment

    I think I found the problem Dave, I was not deliminiting the parm with the following:

    I forgot to include the ''

    Now it works.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Digital marketing agencies have encountered both the opportunities and difficulties that emerge from working with a wide-ranging organizations.
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now