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 can output of SYSOUT moved to some other dataset?

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

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Wed Jun 13, 2007 11:43 am    Post subject: How can output of SYSOUT moved to some other dataset?
Reply with quote

How can output of SYSOUT moved to some other dataset?

I am writing the sample code here.

//G.PRINTER DD SYSOUT=*
this output should move to my next step.
//G.PRINTER DD DSN=dsnname,
DISP=(,CATLG,DELETE),UNIT=SYSDA,
SPACE=(133,(100,10),RLSE),AVGREC=K,
RECFM=FB, LRECL=133,
DSORG=PS
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 13, 2007 11:46 am    Post subject:
Reply with quote

And what happened when you tried using the JCL there ?

Looks OK to me, except, RECFM should be either FBA or FBM rather than FB. You will need to determine the carriage control being used to know which to code, but the majority of them are FBA.
Back to top
View user's profile Send private message
santhoshm

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Wed Jun 13, 2007 12:01 pm    Post subject: How can output of SYSOUT moved to some other dataset?
Reply with quote

The problem here is the output is not going to dataset. But Output is going to SYSOUT.
What I need is whether I can move the SYSOUT to some other dataset.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Wed Jun 13, 2007 12:07 pm    Post subject: Re: How can output of SYSOUT moved to some other dataset?
Reply with quote

Your code
Code:
//G.PRINTER DD SYSOUT=*
this output should move to my next step.
//G.PRINTER DD DSN=dsnname,
DISP=(,CATLG,DELETE),UNIT=SYSDA,
SPACE=(133,(100,10),RLSE),AVGREC=K,
RECFM=FB, LRECL=133,
DSORG=PS


what it should be
Code:
//G.PRINTER DD DSN=dsnname,
// DISP=(,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(133,(100,10),RLSE),AVGREC=K,
// RECFM=FB, LRECL=133,
// DSORG=PS


in plain words... get rid of the first dd statement
Back to top
View user's profile Send private message
santhoshm

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Wed Jun 13, 2007 12:11 pm    Post subject: How can output of SYSOUT moved to some other dataset?
Reply with quote

I wrote the code as you have mentioned,there is no syntactical errors, but it is not sending the output to that particular dataset.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Wed Jun 13, 2007 12:15 pm    Post subject: Re: How can output of SYSOUT moved to some other dataset?
Reply with quote

post the jes2 log

are You sure that the ddname is PRINTER ??
Back to top
View user's profile Send private message
santhoshm

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Wed Jun 13, 2007 12:19 pm    Post subject: How can output of SYSOUT moved to some other dataset?
Reply with quote

yes
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jun 13, 2007 2:41 pm    Post subject:
Reply with quote

Santosh,

What enrico-sorichetti suggested should work, please show your JCL & SYSOUT messages, after the suggested change/s. We can come up with some better suggestions.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Wed Jun 13, 2007 5:41 pm    Post subject:
Reply with quote

Incidentally, your LRECL is ignored as the space in front moves it into the comment field.
Back to top
View user's profile Send private message
santhoshm

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Wed Jun 13, 2007 7:10 pm    Post subject: Re: How can output of SYSOUT moved to some other dataset?
Reply with quote

Here I wrote a part of JCL where there is a problem.


//G.SORTIN DD DSN=&&STEP2,DISP=(OLD,DELETE)
//G.STAA DD DSN=SANT.HR318.STAA.TABLE(0),DISP=SHR
//G.NANN DD DSN=SANT.HS005.NANN.EXTRT(0),DISP=SHR

//G.CNTL2 DD DSN=DATASETS(DATE1850), DISP=SHR
//G.TOTALS DD DUMMY
//* DD SYSOUT=*
//G.PRINTER DD DSN=WORKT.NEWJOB.STEP3.PRINTER,
// DISP=(,CATLG,DELETE),UNIT=SYSDA,
// RECFM=FB,LRECL=133,
// SPACE=(133,(0,500),RLSE),AVGREC=K,
// DSORG=PS



1)I am getting abend as S314 on this step.
here are different scenarios,
2)When I am changing primary space to 100 dataset is empty with out any abend.
3)When I am using SYSOUT on DDname PRINTER I am getting the output in SYSOUT.
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: Thu Jun 14, 2007 12:39 am    Post subject:
Reply with quote

Hello,

If your //G.xxxx statements are overrides to any existing DD statements in step G, make sure they are in the proper sequence.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 14, 2007 1:05 am    Post subject:
Reply with quote

And if G is a step in a nested PROC then forget any chance of providing an override.
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


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