View previous topic :: View next topic
|
Author |
Message |
Rahul_kumar Warnings : 2 New User
Joined: 24 Jun 2006 Posts: 50
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Read the manuals. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
look for edit mask and display |
|
Back to top |
|
|
|