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

How to code DISPLAY in COBOL to see a record in SYSOUT (JCL)


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jonnala

New User


Joined: 22 Sep 2006
Posts: 12

PostPosted: Fri Sep 22, 2006 7:54 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Sep 23, 2006 8:13 pm
Reply with quote

Hi Jonnala,

Just code:
Code:

DISPLAY EMP-REC

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
View user's profile Send private message
Jonnala

New User


Joined: 22 Sep 2006
Posts: 12

PostPosted: Sun Oct 08, 2006 10:56 pm
Reply with quote

Thanks for your responce.

But you are not answered my query.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Oct 09, 2006 9:52 am
Reply with quote

Hi,

Did u give //SYSPRINT DD SYSOUT=* in ur jcl
Back to top
View user's profile Send private message
Jonnala

New User


Joined: 22 Sep 2006
Posts: 12

PostPosted: Mon Oct 09, 2006 9:56 am
Reply with quote

Yes Ekta
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Oct 09, 2006 10:09 am
Reply with quote

HI,

Would u please copy ur jcl here.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top