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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automate 'enter to continue' in CL

Status
Not open for further replies.

ssvec

Technical User
Jun 12, 2001
15
US
We are using a third-party software program that requires the user to 'Press ENTER to end terminal session.'.
We are trying to automate the software by calling it from a CL, using the command

CALL PGM(TDCLNTLIB/STARTSEND)

Is there a way to &quot;send&quot; the <enter> key to end the terminal session that the program uses?
 
The program runs in a terminal sesson, requiring us to hit enter to get out of it. There is no reason that we can see why they wrote it that way, since the program does not require any user interaction except for that !$@#$! enter key to end it. It is not an interactive program.
 
I think that is how QSHELL works. Not the program. We have that too on a purchased program we use. I know it doesn't do this in batch. Mike Wills
IBM iSeries (AS/400) Programmer
[pc2]
 
Have you tried to retrieve the job attributes in your CL and then run the command &quot;ENDJOB&quot; to end the job with *immed?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top