IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Pass count value from one step to another


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chinnielr

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Fri Jul 27, 2007 10:44 am
Reply with quote

Hi,

I have a requirement as stated below.

I have a JCL which contains 4 steps. I want to pass the value of SYSOUT count to another step (EMAIL Step).

in one step I am capturing the count value in SYSOUT step and I want to pass this value to email step. My EMAIL step looks like below.

//EMAIL EXEC PGM=FTP,
// PARM='170.217.78.184(TIMEOUT 120'
//OUTPUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//INPUT DD DSN=XXX.XX.TEST(A1234),DISP=SHR

XXX.XX.TEST(A1234) contains the TEXT as

FTPMAINF
ftpmainf
ascii
put 'SYSOUT value from previous step' AAAA.txt
quit

Can anyone tell me the solution for this.

Thanks in advance,
Chinni.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Jul 27, 2007 10:55 am
Reply with quote

chinni,

For the INPUT dsn instead of using one dataset (XXX.XX.TEST(A1234),DISP=SHR), Use multiple datasets and concatenate them. Like

In first file -
Code:
FTPMAINF
ftpmainf
ascii


Second file -
Code:
put 'SYSOUT value from previous step' AAAA.txt

Generate this line dynamically using some utility (like DFSORT outrec facility)

Third file-
Code:
quit
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts How to pass the PARM value to my targ... COBOL Programming 8
Search our Forums:

Back to Top