Hi: In a recent post Johnny Luo wrote:
"... However,when I execute the program via JCL without coding infile DDNAME,it fails. So I want to know the exact reason.My personal guess is that a job submitted by JCL is not executed in my TSO address space.Would someone be kind enough to give some explanation for me?" If a batch job is submitted with PGM=IKJEFT10, IKJEFT1B or any of the valid variations then whatever happens inside, be in REXX, Assembler, Cobol, PLI, will run in a TSO environment, but not the same environment as that of the submitter. Remember that batch jobs run in their own Address Spaces. If, in the logged on session, the command sequence is: - Allocate data sets - Execute program - Deallocate data set Then that sequence must be present in the batch job, either after the SYSTSIN DD statement, or within a REXX /CLIST routine, which can be invoked via the PARM field on the EXEC statement of the submitted job. I hope this helps. Kind regards - Terry Terry Sambrooks Director KMS-IT Limited 228 Abbeydale Road South Dore Sheffield South Yorkshire UK Tel +44 (0) 114 262 0933 Web www.kmsitltd.co.uk Reg: England & Wales 3767263 at the above address All outgoing E-mails are scanned but it remains the responsibility of the recipient to ensure that their system is protected from infection by virus, Trojans, and worms. ---------------------------------------------------------------------- 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

