Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to display COMP, COMP-1, COmp-2 and Comp-3 fields?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
Rahul_kumar
Warnings : 1

New User


Joined: 24 Jun 2006
Posts: 23

PostPosted: Thu Jul 02, 2009 5:19 pm    Post subject: How to display COMP, COMP-1, COmp-2 and Comp-3 fields?
Reply with quote

Hi ,

I want to know how we can display COMP, COMP-1, COmp-2 and Comp-3 fields?
Like i have to read a field S9(5)V9(3) and write it to output file in read able format.
Similarly i have to Display a field S9(3)v(2) usage comp.

Pls suggest.

Thanks!
Back to top
View user's profile Send private message
References
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1362
Location: Virginia, USA

PostPosted: Thu Jul 02, 2009 5:37 pm    Post subject:
Reply with quote

Read the manuals.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 4910
Location: Atlanta, GA

PostPosted: Thu Jul 02, 2009 5:50 pm    Post subject:
Reply with quote

First, make up your mind what you want to do. DISPLAY is a specific COBOL verb with a specific meaning -- namely, to print upon the system output device (usually SYSOUT unless overridden). You cannot use DISPLAY to write a field to an output file as you appear to want to in your post.

Second, as Craq said -- read the manuals, they are quite clear about how each type of numeric field will be converted by the DISPLAY statement. And read up on the MOVE statement for moving numeric values around -- there's a table that will tell you how to do what you want with the output file.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 4178
Location: porcelain throne

PostPosted: Thu Jul 02, 2009 5:55 pm    Post subject:
Reply with quote

look for edit mask and display
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1