[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Error when passing a PARM

Posted on 2004-11-23
4
Medium Priority
?
999 Views
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.

Douglas
0
Comment
Question by:dpalme
  • 3
4 Comments
 
LVL 14

Accepted Solution

by:
daveslater earned 80 total points
ID: 12656682
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      

Dave

0
 
LVL 1

Author Comment

by:dpalme
ID: 12657236
Do I still leave the 9  0 in the parm line ?

0
 
LVL 1

Author Comment

by:dpalme
ID: 12657772
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.

0
 
LVL 1

Author Comment

by:dpalme
ID: 12659025
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.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will help to fix the below errors for MS Exchange Server 2016 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
Exchange administrators are always vigilant about Exchange crashes and disasters that are possible any time. It is quite essential to identify the symptoms of a possible Exchange issue and be prepared with a proper recovery plan. There are multiple…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month18 days, 13 hours left to enroll

834 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