Depending on what exactly is the requirement, you could use a panel to receive input from a user and then submit a batch job containing the user entries.
Once submitted, there would be no more interaction with the rexx code. . . Depending on the function of the batch job, the results of that process could be inserted into some database (where the user could query it), printed back to the user's network printer, or stored in a qsam file that could be downloaded.
What you have understood from the requirement is perfectly correct.
I have coded a rexx program for this and it is working fine.Now I need a JCL to run this rexx code as batch job.