RUN TASK command in connect:Direct



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

RUN TASK command in connect:Direct

Postby sindhum » Wed Aug 26, 2009 3:47 pm

Hi

Can anyone brief me the usage of RUN TASK command.

I have a requirement to code 2 steps in NDM proc, in STEP01 I would copy mainframes file to window server file and in STEP02 I have to check if STEP01 is success or not. If STEP01 goes fine, I have to transmit a Indicator file (zero byte text file) to windows server. How can I accomplish this using RUN TASK? Would the below lines work?

-------------------------------------------
IF (STEP01 EQ 0) THEN
STEP02 RUN TASK SNODE -
SYSOPTS=&SYSOPT1
EIF
-------------------------------------------

I have found a script below where indicator file is sent to Unix server, what does the UNIX program do here?
-------------------------------------------
IF (STEP01 EQ 0) THEN
STEP02 RUN TASK SNODE (PGM=UNIX) -
SYSOPTS=&SYSOPT1
EIF
-------------------------------------------

Thanks & Regards
Sindhu
sindhum
 
Posts: 4
Joined: Mon Aug 17, 2009 2:12 pm
Has thanked: 0 time
Been thanked: 0 time

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post