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

How to ROUTE this DDnames to DATASET


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shrinivas_3
Warnings : 1

New User


Joined: 05 Sep 2006
Posts: 34

PostPosted: Tue Sep 19, 2006 1:19 pm
Reply with quote

Hi

For almost all jcls we have this DDname's when we see the results in Spool .

JESMSGLG
JESJCL
JESYSMSG
SYSTSPRT

My question is " CAN we route the above DDnames to some Data set in the same JCL which generated this messages ? "

For eg : for Sysout sometimes we write as

//SYSOUT DD SYSOUT=*
or
//SYSOUT DD dsn=......., disp=shr
Here we get the results in own PS .

In the similar way i want to route
JESMSGLG
JESJCL
JESYSMSG
SYSTSPRT

to some dataset in the same JCL .

please note "i dont want to route by XDC command after job run or manually cut paste the content ' , It should be done in the same jcl '

Thanks

Shrinivas
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Sep 19, 2006 4:30 pm
Reply with quote

Add a step ant the end of the job. Invoke batch SDSF, read the outputs and write the to datasets using SDSF commands from batch.

O.
Back to top
View user's profile Send private message
shrinivas_3
Warnings : 1

New User


Joined: 05 Sep 2006
Posts: 34

PostPosted: Tue Sep 19, 2006 6:22 pm
Reply with quote

ofer71 wrote:
Add a step ant the end of the job. Invoke batch SDSF, read the outputs and write the to datasets using SDSF commands from batch.

O.


Thanks for quick reply

But I could not understand this.

Could you please show me the steps / procs used to invoke Batch SDSF

It would be helpful if you can show a complete sample jcl.(eg some sort operation)





Thanks
Shrinivas
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Sep 19, 2006 7:30 pm
Reply with quote

How to invoke SDSF in batch???
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Tue Sep 19, 2006 7:40 pm
Reply with quote

That process has been documented many, many times before in these Forums. Just search for one of the examples.
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top