View previous topic :: View next topic
|
Author |
Message |
Jonnala
New User
Joined: 22 Sep 2006 Posts: 12
|
|
|
|
Hi,
Suppose I want to see a record called EMP-REC of EMP file in SYSOUT of the JCL.
How should I code in COBOL?? (UPON is not working)
Can any one of U please help me out ??
I tried in below way, but it's not working,
in COBOL program PGM1,
DISPLAY EMP-REC UPON BY SYSOUT.
In JCL,
//STEP010 STEP PGM=PGM1
//DD1.....
//DD2...
//SYSOUT DD SYSOUT=*
Regards,
Srikar
but in the above JOB's spool am not able to find SYSOUT. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Jonnala,
Just code:
I like to code it this way:
Code: |
DISPLAY '>' EMP-REC '<' |
The >< shows you where the rec begins/ends. Sometimes the rec contains unprintable chars, so you may think it starts/ends at the wrong place.
If you see spaces in the spool rec enter "hex on" in the cmd line that will show you the hex chars of the chars you may think are spaces.
Use "hex off" to return to normal display. |
|
Back to top |
|
|
Jonnala
New User
Joined: 22 Sep 2006 Posts: 12
|
|
|
|
Thanks for your responce.
But you are not answered my query. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi,
Did u give //SYSPRINT DD SYSOUT=* in ur jcl |
|
Back to top |
|
|
Jonnala
New User
Joined: 22 Sep 2006 Posts: 12
|
|
|
|
Yes Ekta |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
HI,
Would u please copy ur jcl here. |
|
Back to top |
|
|
|