View previous topic :: View next topic
|
Author |
Message |
foolsbrain
New User
Joined: 15 Apr 2010 Posts: 11 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
foolsbrain,
have you received the info that you need? |
|
Back to top |
|
|
foolsbrain
New User
Joined: 15 Apr 2010 Posts: 11 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
expat wrote: |
There is a SEARCH button at the top of each page, please feel free to use it. |
|
|
Back to top |
|
|
|