On Wed, 22 Oct 2008 07:18:58 -0500, Scott Barry wrote:

>On Wed, 22 Oct 2008 11:37:12 +0200, Michael Knigge wrote:
>>//*
>>//* IMAGINE FOO WILL OUTPUT AN IP-ADDRESS - BUT THE ADDRESS
>>//* IS OF COURSE NOT KNOWN...
>>//*
>>//STEP01   EXEC PGM=FOO
>>//SYSPRINT   DD SYSOUT=*
>>//*
>>//* NOW I NEED TO EXECUTE A COMMAND THAT CONTAINS
>>//* THE IP-ADDRESS
>>//STEP02   EXEC PGM=BA,PARM='PING the.ip.addr.here'
>>
>A REXX or CLIST EXEC (or many other programming options) that parses your
>SYSPRINT (passed from the first step in a dataset, not SYSOUT -- or put to a
>dataset, the "gener" to SYSOUT if someone needs this info), which in turn
>generates a temp (or permanent, transient/temporary - for restart purposes)
>dataset containing your PING (or whatever) command which gets executed in a
>subsequent step.
>
<EVANGELISM> This is extraorinarily easy to do in z/OS Unix
with a shell command using command substitution:

    PING "$(FOO)"

Consider that as an alternative.</EVANGELISM>

How about:

    //STEP02   EXEC  PGM=IKJEFT01
    //SYSTSIN  DD    *
        PING -
    //         DD    DISP=OLD,DSN=*.STEP01.SYSPRINT

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to