View previous topic :: View next topic
|
Author |
Message |
Apurva Ghogale
New User
Joined: 20 Sep 2018 Posts: 9 Location: INDIA
|
|
|
|
Hi team ,
I am looking for some way where I can create datasets from Spool data. I want this to be done in batch mode every time I see my required jobs in spool.
I know XDC and other ways , but thats manual work. I need this to be automated or to be done in bacth mode. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10882 Location: italy
|
|
|
|
the usual way for the requirement is to change the jcl
write the output to a PS dataset
add one IEBGENER step to print the PS dataset
something like
Code: |
//stepnm EXEC PGM=yourpgm
//... DD ...
//... DD ...
//... DD ...
//yourddn DD DSN=thepsdataset,
// ...
// ...
//*
//print EXEC PGM=IEBGENER
//SYSUT1 DD DSN=thepsdataset,
// ...
// ...
//SYSUT2 DD SYSOUT=* |
|
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 728 Location: Denmark
|
|
|
|
Seems to be a good candidate for the REXX/SDSF API. Check the SDSF Users Guide, there are a number of samples which you can combine. Or search this forum, there's bound to be some samples here too.
Suggested samples are STatus to detect new job output, and BROWSE to read a specific DDname. |
|
Back to top |
|
|
Apurva Ghogale
New User
Joined: 20 Sep 2018 Posts: 9 Location: INDIA
|
|
|
|
enrico-sorichetti wrote: |
the usual way for the requirement is to change the jcl
write the output to a PS dataset
add one IEBGENER step to print the PS dataset
something like
Code: |
//stepnm EXEC PGM=yourpgm
//... DD ...
//... DD ...
//... DD ...
//yourddn DD DSN=thepsdataset,
// ...
// ...
//*
//print EXEC PGM=IEBGENER
//SYSUT1 DD DSN=thepsdataset,
// ...
// ...
//SYSUT2 DD SYSOUT=* |
|
I cannot have output write to my dataset as the jobs are owned by predecessor application team from another system. And they cannot change their way .They will write data to Spool and we have to pick it up from spool and convert to File so that our JCL can load in repository |
|
Back to top |
|
|
Apurva Ghogale
New User
Joined: 20 Sep 2018 Posts: 9 Location: INDIA
|
|
|
|
Willy Jensen wrote: |
Seems to be a good candidate for the REXX/SDSF API. Check the SDSF Users Guide, there are a number of samples which you can combine. Or search this forum, there's bound to be some samples here too.
Suggested samples are STatus to detect new job output, and BROWSE to read a specific DDname. |
I did check SDSF and found SDSFEXT utility. Do you know anything about this utility and its function? Can it be used in my requirement? I have never used this utility before hence asking. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1319 Location: Bamberg, Germany
|
|
|
|
Search this forum for samples already provided. |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 728 Location: Denmark
|
|
|
|
"owned by predecessor application team from another system. And they cannot change their way"
They don't have to change their ways. Setup a STC or a long running batch job, with proper authorization. |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 587 Location: London
|
|
|
|
Most installations have sysout being managed into a repository by OEM software such as CAVIEW or suchlike rather than a bespoke method. Are you sure there's nothing like that installed? |
|
Back to top |
|
|
|