Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us