Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8614
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: 10373
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: 6970
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: 8614
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
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 6 Fri Sep 22, 2017 7:08 am
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us