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

SPOOL to Mainframe dataset in batch mode


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Apurva Ghogale

New User


Joined: 20 Sep 2018
Posts: 9
Location: INDIA

PostPosted: Mon May 27, 2024 3:44 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10877
Location: italy

PostPosted: Mon May 27, 2024 4:39 pm
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 720
Location: Denmark

PostPosted: Mon May 27, 2024 8:08 pm
Reply with quote

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
View user's profile Send private message
Apurva Ghogale

New User


Joined: 20 Sep 2018
Posts: 9
Location: INDIA

PostPosted: Tue May 28, 2024 2:18 pm
Reply with quote

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
View user's profile Send private message
Apurva Ghogale

New User


Joined: 20 Sep 2018
Posts: 9
Location: INDIA

PostPosted: Tue May 28, 2024 2:20 pm
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1295
Location: Bamberg, Germany

PostPosted: Tue May 28, 2024 2:29 pm
Reply with quote

Search this forum for samples already provided.
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 720
Location: Denmark

PostPosted: Tue May 28, 2024 10:15 pm
Reply with quote

"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
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 584
Location: London

PostPosted: Wed May 29, 2024 3:00 pm
Reply with quote

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
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 Reading Empty Dataset DFSORT/ICETOOL 5
No new posts Call an hlasm from REXX in batch and ... CLIST & REXX 4
No new posts Email attachment from mainframe is empty PC Guides & IT News 9
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
No new posts Need help In Mainframe Automation AF/... CLIST & REXX 14
Search our Forums:

Back to Top