RPG-Free and Parms

0 pts.
Tags:
Development
I can't get into the question archive so I don't know if this has been asked. I am working in RPG-Free and want to code for parm, I know I can't use PLIST/PARM but when I use the PR in Data Description it doesn't find the field. Exmaple: d sbmflag pr d sbm_flag 1 In my code I have : sbm_flag = 'Y' What am I doing wrong?
ASKED: May 26, 2005  10:25 AM
UPDATED: May 26, 2005  11:34 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

The prototype does not actually define the fields, it just lists the parameters and their attributes. You still need to define the parameter within the program, it can have the same name as the prototype but does not have to.

This is an example of how to call another program. The prototype can be named anything the Extpgm keyword defines the actual program being called. If you do not specify the Extpgm keywork the system assumes the prototype is for a procedure not a program.

D Program PR Extpgm(‘PGM001′)
D Submit 1
*
D SbmPgm S 1

/Free
SbmPgm = ‘Y’;
CallP Program(SbmPgm);
/End-Free

I hope this helps.

Mike

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following