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
 

 

Accessing the sysout of the previous step in a job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
foolsbrain

New User


Joined: 15 Apr 2010
Posts: 11
Location: chennai

PostPosted: Wed Jul 07, 2010 6:54 pm    Post subject: Accessing the sysout of the previous step in a job
Reply with quote

Hi all,
Is it possible to access the sysout information of a previous step in a jcl.
My requirement is, I need to get unload from a table and load it in another table; After loading the records, i have to report how many records i have loaded. Is it possible to return the record count alone to rexx or write somewhere?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 07, 2010 6:55 pm    Post subject:
Reply with quote

Using SDSF in batch or routing sysout to a dataset has been discussed far too many times already on the forum.

There is a SEARCH button at the top of each page, please feel free to use it.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Jul 07, 2010 6:59 pm    Post subject: Reply to: Accessing the sysout of the previous step in a job
Reply with quote

as usual then zOS/mvs device independence paradigm applies,
instead of using ...
Code:
//<someddname> DD SYSOUT=<sysoutclass>,
//                DCB=(<dcbinfo>)

use
Code:
//<someddname> DD DISP=(<disp>),
//                DSN=<dsname>,
... other relevant DD tokens
//                DCB=(<dcbinfo>)


and You will be able to process the <sysout> data in the following steps
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jul 07, 2010 7:34 pm    Post subject:
Reply with quote

Though you've posted in JCL part of the forum and at first glance it looks like you just want SYSOUT to be written into a DS instead of system -output (which Enrico has alredy told, how to do) but you also talked about
Quote:
I need to get unload from a table and load it in another table
, which sounds as if it's DB2 related also - so what exactly you want to do. What is happening in the "previous step"? And how do you intend to get the "count of loaded records"?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 07, 2010 8:01 pm    Post subject:
Reply with quote

foolsbrain,

have you received the info that you need?
Back to top
View user's profile Send private message
foolsbrain

New User


Joined: 15 Apr 2010
Posts: 11
Location: chennai

PostPosted: Thu Jul 08, 2010 10:45 pm    Post subject: Reply to: Accessing the sysout of the previous step in a job
Reply with quote

Hi all,
Thanks for your responses. Writing the sysout to dataset worked for me, but Expat has said something about SDSF, can anyone tell how to do this using SDSF?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Jul 09, 2010 11:24 am    Post subject:
Reply with quote

expat wrote:
There is a SEARCH button at the top of each page, please feel free to use it.
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
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 How to get previous month in SYMNAMES Suganya87 SYNCSORT 9 Fri Oct 28, 2016 1:37 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
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