Link to home
Start Free TrialLog in
Avatar of dpalme
dpalme

asked on

Error when passing a PARM

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.

Douglas
ASKER CERTIFIED SOLUTION
Avatar of daveslater
daveslater
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dpalme
dpalme

ASKER

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

Avatar of dpalme

ASKER

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.

Avatar of dpalme

ASKER

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

PARM('xxxxxxxxxx')
I forgot to include the ''

Now it works.