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.  Splitting it across 2 lines as
//SYSTSIN  DD  *
  RECEIVE INFILE(SYS2)
  DSNAME('APF1.V100.ISPPLIB.TEST') OLD
/*
will make it work. 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. This is probably something very obvious to everyone else who works with MVS, except me.

   Thanks for the help.

   --Dave Day
----- Original Message ----- From: "Peter X. DeFabritus" <[EMAIL PROTECTED]>
Newsgroups: bit.listserv.ibm-main
To: <[email protected]>
Sent: Friday, May 25, 2007 1:58 PM
Subject: Re: Using TSO Receive in batch


The way I have done it:

//SYSTSIN DD *
RECEIVE INDATASET('input data set')
DSN('output data set') UNIT(SYSALLDA) VOL(vvvvvv)
END

----------------------------------------------------------------------
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