View previous topic :: View next topic
|
Author |
Message |
santhoshm
New User
Joined: 13 Jun 2007 Posts: 32 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
santhoshm
New User
Joined: 13 Jun 2007 Posts: 32 Location: chennai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
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 |
|
|
santhoshm
New User
Joined: 13 Jun 2007 Posts: 32 Location: chennai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
post the jes2 log
are You sure that the ddname is PRINTER ?? |
|
Back to top |
|
|
santhoshm
New User
Joined: 13 Jun 2007 Posts: 32 Location: chennai
|
|
|
|
yes |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1049 Location: Richmond, Virginia
|
|
|
|
Incidentally, your LRECL is ignored as the space in front moves it into the comment field. |
|
Back to top |
|
|
santhoshm
New User
Joined: 13 Jun 2007 Posts: 32 Location: chennai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
And if G is a step in a nested PROC then forget any chance of providing an override. |
|
Back to top |
|
|
|