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

How to split SAS log and output


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Wed Jan 17, 2007 9:10 pm
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
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

Moderator Emeritus


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

PostPosted: Wed Jan 17, 2007 10:26 pm
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 Developer


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

PostPosted: Wed Jan 17, 2007 10:30 pm
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: 459
Location: Belgium

PostPosted: Wed Jan 17, 2007 11:02 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts XDC SDSF output to temp dataset CLIST & REXX 4
Search our Forums:

Back to Top