480 pts.
Q:
how to pass numeric data to cl program from as400 command line
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.
ASKED: Jun 24 2009  1:18 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
25660 pts.
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • Bookmark and Share
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
Last Answered: Jun 24 2009  1:28 PM GMT by Philpl1jb   25660 pts.
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Cunninjoe   310 pts.  |   Jun 24 2009  5:53PM GMT

CALL PGM(PGM1) PARM(X’123F’) to call program with a parameter of + 123.

 

Mohan K   480 pts.  |   Jun 25 2009  4:56AM GMT

Thank you… its working

 

Yorkshireman   3210 pts.  |   Jun 25 2009  3:32PM GMT

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

 

Mcl   2635 pts.  |   Jun 26 2009  6:27AM GMT

You put comments in your code? :)

Yeah, definately go with the command instead of calling the CL directly for command-line use..

regards
Mike