David Day wrote:
Just learned something about TSO batch. Coding the RECEIVE command all on one line as

//SYSTSIN  DD  *
  RECEIVE INFILE(SYS2) DSNAME('APF1.V100.ISPPLIB.TEST') OLD

will make it fail.

Because DSNAME() and OLD are not valid operands of the RECEIVE command...

Splitting it across 2 lines as
//SYSTSIN  DD  *
  RECEIVE INFILE(SYS2)
  DSNAME('APF1.V100.ISPPLIB.TEST') OLD
/*
will make it work.

but they are valid responses to the prompt issued by RECEIVE.

Evidently going back to the SYSTSIN dd for the next part of the command is the same as getting input from the prompt in foreground.

"Next part of the command" and "prompt" are completely different for RECEIVE.

Bob

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to