Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Pass count value from one step to another

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Pass count value from one step to another
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: 1439
Location: Bangalore,India

PostPosted: Fri Jul 27, 2007 10:55 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us