Is there a way to take a command parameter value, lookup it up in a file either through a CL or RPG or some other way, and have a value returned to another parameter.
I'm not talking about a prompt override program using a key parm but instead just a simple straightforward command where they enter a dozen parameter values and then look up the last one to retrieve a value and display it in another parameter.
To better understand what I'm trying to accomplish;
I have a command where a user can enter values for a new task and one of the parameters they have to enter is the requestor of the task. I want to take this requestor name and look it up in file to see if an email address is on file for it. If not, I want to force the user to enter one for the requestor or, if it is found to be on file display it.
I can use a validity checking program for the majority of this but I'm not sure how to return the address, or if it's even possible.
Red.
I'm not talking about a prompt override program using a key parm but instead just a simple straightforward command where they enter a dozen parameter values and then look up the last one to retrieve a value and display it in another parameter.
To better understand what I'm trying to accomplish;
I have a command where a user can enter values for a new task and one of the parameters they have to enter is the requestor of the task. I want to take this requestor name and look it up in file to see if an email address is on file for it. If not, I want to force the user to enter one for the requestor or, if it is found to be on file display it.
I can use a validity checking program for the majority of this but I'm not sure how to return the address, or if it's even possible.
Red.
Comment