Question & Answer
Question
How to code a multi-step Process on Connect:Direct UNIX (7.0.1514516.2122299)
Cause
Answer
The UNIX script below shows a multi-step process for C:D UNIX. Step01 is the
copy. Step02 is a conditional check to see if step01 was successful. Step03
issues a RUN TASK on the UNIX SNODE. Step04 issues another RUN TASK on the UNIX
SNODE.
ndmcli -x << EOJ<br/>submit tounix process snode=199.1.4.28
<br/>step01<br/> copy from (file =
/home/cs/process/custdata<br/><br/> pnode<br/>
)<br/> ckpt = 5k<br/> compress = extended<br/> to (file =
/tmp/xxx<br/> snode<br/>
sysopts=":datatype=text:xlate=no"<br/> disp = new<br/>
)<br/>step02 if (step01 > 0) then<br/> goto step04<br/>
else<br/>step03 <br/> run task sysopts="cp /tmp/xxx /tmp/yyy"<br/>
snode<br/> eif<br/> exit<br/>step04 run task sysopts="touch
/tmp/badfile"<br/> snode<br/> exit
Historical Number
PRI27339
Product Synonym
[<p><b>]Fact[</b><p>];CONNECT:Direct UNIX;All releases [<br/>] 7.0.1514516.2122299;[<p><b>]Goal[</b><p>];How to code a multi-step Process on Connect:Direct UNIX
Was this topic helpful?
Document Information
Modified date:
17 December 2019
UID
swg21549962