Hello Friends,
I need a small help. I have an existing AS 400 command (Utility). As of now this command doesn’t have any user input, which means this command has no parameters. As per the new requirement whenever we execute this command this should ask for an input, which means I have to pass a parameter with this command. How can I change this command to accept an input from user?
I change the “CMD” program by adding a PARM value. I in the “program to process command” I added a new parameter also…. Even after also while executing this command its not asking for input. Can any one help in these regards?
Thanks & Regards
Bibin George
Software/Hardware used:
AS400 Command
ASKED:
October 15, 2009 9:37 AM
UPDATED:
October 15, 2009 8:42 PM
If you set the “Minimum values required” to 1 or MIN(1) for each parameter that requires input, it should prompt the user to enter a value.
parm fid1 *char 6 min(1) prompt(‘Field 1′)
If you want to make it a little friendlier for the user, you can wrap the call in a CL so it is automatically prompted.
pgm
? yourlib/yourcmd
monmsg cpf6801
endpgm