Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to split SAS log and output

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
MIMI
Warnings : 1

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Wed Jan 17, 2007 7:27 pm    Post subject: How to split SAS log and output
Reply with quote

Dear,

I want to split a job outputs by its log and reports. I need to send the reports(output lists) and logs separately in SDSF and also need to get 2 copies that have 2 entries in SDSF(not put the two copies in one entry of SDSF). That mean I need 4 lists in SDSF (two for log and two for list) but I don't need to run the job twice?

Do anyone have this JCLs? Much appreciated.

MIMI
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 17, 2007 9:10 pm    Post subject:
Reply with quote

Hello,

Change your DD statements for the sysouts you need 2 copies of to be like:
Code:
//ddname DD SYSOUT=whatever,COPIES=2


Please refer to the JCL manual for more info.
Back to top
View user's profile Send private message
MIMI
Warnings : 1

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Wed Jan 17, 2007 10:06 pm    Post subject:
Reply with quote

Thanks, Dick Sherrer,

But this will give me one entry in SDSF that append the two copies together. I need the two entries in SDSF. So when I send one to printer and another one still in SDSF.

MiMi icon_redface.gif icon_redface.gif icon_redface.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 17, 2007 10:26 pm    Post subject:
Reply with quote

Hello,

One way to do that is to write the original to a dataset and then run 2 separate IEBGENER steps to create the separate sysouts that you need.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Jan 17, 2007 10:30 pm    Post subject:
Reply with quote

Quote:
run 2 separate IEBGENER steps


Or one DFSORT step with

Code:

  OPTION COPY
  OUTFIL FNAMES=(OUT1,OUT2)
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Wed Jan 17, 2007 11:02 pm    Post subject:
Reply with quote

Does not ALTLOG ( coupled with SASLOG ) what you want?
Back to top
View user's profile Send private message
MIMI
Warnings : 1

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Thu Jan 18, 2007 2:41 am    Post subject:
Reply with quote

Thanks all, It is a great help.

I found a way to do that:

Code:
//ddname DD SYSOUT=A,output=SDSF, Class=B, COPIES=2

because the defaut SDSF class =A. so the system will give two output in Q, one is class A and another is class B.

Ped, I like you picture. Much appreciate,

MIMi
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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us