Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Macro name changed from html to html-bobswift during server to cloud migration processing.

...

  • Parameter file has a value of *.
  • Parameter src has a value of c:\source.
  • Parameter dst has the value /etc/dest.
Panel

Html bobswift

<pre>
call script.udm file=* src=c:&#92;source dst=/etc/dest
</pre>


Anchor
1153545
1153545
To invoke a script under IBM i, the member name is required and can be *FILE:

Panel

Html bobswift

<pre>
call mylib/myfile(myscript)
</pre>

Anchor
1153547
1153547
Specifying *FILE invokes the normal default IBM i file search order.

...

  • Invocation of an inline script, CALLME, using the STRUDM command from a database job.
  • Invocation of an inline script, CALL1, using the CALL command from a database job.
Panel

Html bobswift

<pre>
//BCHJOB JOB(testcall) ENDSEV(10) OUTQ(mytest/UDMOUTQ) LOGCLPGM(*YES)
LOG(2 20 *SECLVL) MSGQ(*USRPRF)
//DATA FILE(CALL1) ENDCHAR(ENDDATAFILE)
print msg="I made it to call1 - an inline file"
ENDDATAFILE
//DATA FILE(CALLME) ENDCHAR(ENDDATAFILE)
OPEN S=AS400V5 USER=qatest PWD=***** PORT=4311
CALL CALL1(*FIRST)
CLOSE
ENDDATAFILE
STRUDM SCRFILE(CALLME)
//ENDBCHJOB
</pre>