Page 1 of 1

RUN TASK command in connect:Direct

PostPosted: Wed Aug 26, 2009 3:47 pm
by sindhum
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