I may be missing something, but I'd go for something like:

//STEP01   EXEC PGM=FOO
//SYSPRINT   DD DISP=(NEW,PASS)...etc...
//STEP02   EXEC PGM=BA
//SYSIN      DD DSN=*.STEP01.SYSPRINT,DISP=(OLD,DELETE)...
//SYSPRINT   DD SYSOUT=*

John Compton

Phone Cork: +353 (0)21 231 4641;

Phone VOIP: 214-775-3641

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Michael Knigge
Sent: 22 October 2008 10:37
To: IBM-MAIN@BAMA.UA.EDU
Subject: JCL Problem...

All,


I have a utility that outputs a string to SYSPRINT (but that can be 
changed). Now I need to pass this string via SYSIN (or PARM) together 
with some other parameters to a second utility.

A little "pseudo-sample":

//*
//* 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'

..... OR ...

//STEP02   EXEC PGM=BA
//SYSIN      DD *
PING the.ip.addr.here
//SYSPRINT   DD SYSOUT=*



Any ideas how to solve this problem?


My first idea was to pass the SYSPRINT from STEP01 to a following STEP 
that issues an EDIT-Macro that changes the contents to my needs (BTW, 
how to do this?). The "new" SYSPRINT is then passed to the "PING" STEP.

Of yourse this is just simplified just to show you what I need. My real 
case has nothing to do with IP-Adresses and PING and that stuff, but 
this sample is (I think so) easy to understand...


Thank you in advance....



Bye,
Michael

----------------------------------------------------------------------
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

----------------------------------------------------------------------
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