Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OK I know I've done this a million

Status
Not open for further replies.

LUEBBKEVIN

Programmer
Apr 30, 2002
35
US
OK I know I've done this a million times. I need a quick CL program that will use a display program to allow the user to input a program name. The CLP will use this parm from the display as the call in a SBMJOB.
In CL how do I use this display?
 
Are you wanting to use a diplay file in the cl and then submit the same cl to batch? If so do rtvjoba get TYPE. if TYPE = batch (1 or 0 I DON'T REMEMBER) then goto past the sndrcvf command used to display the screen. Rod
 
If running in batch type=0, interactive=1.

To use a display file in cl first declare it

DCLF FILE(MYDISPLAY)

then display the record you wish to see

SNDRCVF RCDFMT(MYRECORD)

All fields defined on the display record are automatically defined in the CL, just prefix with a & to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top