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 to display COMP, COMP-1, COmp-2 and Comp-3 fields?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Rahul_kumar
Warnings : 2

New User


Joined: 24 Jun 2006
Posts: 50

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

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
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: 7990
Location: Bellevue, IA

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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am


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