how to pass numeric data to cl program from as400 command line

695 pts.
Tags:
AS/400 commands
CL Program
Hi All, I want to pass numeric data of length (8 0) to my CL program while calling from AS400 command line but program is not receiving correct value into the program. Can anyone plz help me how to pass numeric data.

Answer Wiki

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

You’re right —
I generally write a test cl that receives the 8 digits as characters
does a chgvar on the input to dec type
calls the CL to be tested.

Phil

Discuss This Question: 4  Replies

 
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
  • Cunninjoe
    CALL PGM(PGM1) PARM(X'123F') to call program with a parameter of + 123.
    320 pointsBadges:
    report
  • Mohan K
    Thank you... its working
    695 pointsBadges:
    report
  • Yorkshireman
    On the basis that it will need running more than once - or testing by someone else, I usually just write a command, whose cpp is the program to be tested/run cmd name = pgm name or something more snappy cmd 'apbjfr' parm *DEC length 6 - etc 2 lines is enough code - plus 10 lines of comment
    5,580 pointsBadges:
    report
  • mcl
    You put comments in your code? :) Yeah, definately go with the command instead of calling the CL directly for command-line use.. regards Mike
    2,740 pointsBadges:
    report

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