I have a command that has a key parameter which is working perfectly. The key parm is used to save that instance of the commands parameters to a data area of the same name if it does not exist. It is also used to load the command with previously entered values. This is so the user can retrieve a specific data area and load the command with predefined parameters rather than enter all of the required values over and over again.
Now, they want to see all the previously saved instances.
Fairly easy I thought; just do a display object command using a partial name (xxx*) to a outfile, then read that outfile, build a string and return that string (with it's length) to the command, according to the IBM website regarding prompt programs, so when the key parm field is displayed, they could press F4 and see the list and select which ever instance they want.
But because of the way the command is now functioning, I’m beginning to think I cannot do this with a key parm.
Here's what's happening:
When typing the command on the command line and pressing F4, the entire command loads with default values, it seems the key parm processing is being bypassed and the values being returned are being displayed to the right of the key parm as choice text instead of being prompted for.
Is what I'm trying to do possible with a key parm?
May 27, 2009 4:16 PM
July 7, 2009 2:44 PM