Tony. You may already seen that the //comand1 is not a dd nor exe jcl card. It is a jcl command statement and has nothing to do with the job steps. Jcl commands and jes /* commands are executed at conversion tome independed with the job status. They are executed even if the job will never run.
As others explained, u can use tso console command and even verify response. This way u can use a single jobstep. Best ITschak בתאריך 16 במאי 2016 18:22, "Tony Thigpen" <[email protected]> כתב: > I have spent most of my life as a z/VSE and z/VM systems programmer, but > during the last year, I have been managing a couple of z/OS systems in our > small outsourcing shop. > > At this point, I would consider myself just a very knowledgeable, but > still novice z/OS systems programmer. So, be gentle with your replies. :-) > And, please don't laugh. > > Last night/this morning, I have stumped because I noticed that some JCL > set up by a previous systems programmer was not working as it appeared it > should. [At least, until I read the manual.] > > We have many jobs set up something like thus: > > //STEP1 EXEC PGM=IEFBR14 > //COMMD1 COMMAND 'S CICSPTOR' > //WAIT1 EXEC PGM=WAITRCAB,PARM='30' wait 30 seconds > //STEP2 EXEC PGM=IEFBR14 > //COMMD1 COMMAND 'S CICSPDOR' > //WAIT2 EXEC PGM=WAITRCAB,PARM='30' wait 30 seconds > //STEP3 EXEC PGM=IEFBR14 > //COMMD1 COMMAND 'S CICSPAOR1' > //COMMD1 COMMAND 'S CICSPAOR2' > //WAIT3 EXEC PGM=WAITRCAB,PARM='30' wait 30 seconds > //* > > I, of course, though the commands would be synchronized with the execution > JCL. But, we were seeing timing errors that could not be corrected by just > increasing the wait timers. So, I started looking for the problem and found > that all the commands were being issued to the console before the first > IEFBR14 even executed. > > I was totally surprised when I found that IBM documents the COMMAND jcl > card as being processed during the JCL conversion phase and not during the > execution phase. *And* that a previous systems programmer must not have > known it either. > > So, now I have 2 questions for the knowledgeable people on the list: > > 1) Are there any other jcl statements that are executed outside the normal > execution phase? > > 2) What is the 'normal' method to issue console commands synchronized with > the job execution? > > -- > Tony Thigpen > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
