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

Accessing the sysout of the previous step in a job


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Jul 07, 2010 6:55 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jul 07, 2010 6:59 pm
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

Superior Member


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

PostPosted: Wed Jul 07, 2010 7:34 pm
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
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Jul 09, 2010 11:24 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts How to extract the data for current y... DFSORT/ICETOOL 8
Search our Forums:

Back to Top