View previous topic :: View next topic |
Author |
Message |
Prabakar_S Beginner
Joined: 20 Dec 2006 Posts: 18 Topics: 7 Location: Chennai
|
Posted: Thu Sep 13, 2007 6:47 am Post subject: Easytrieve - Remove CC character while using DISPLAY DD stmt |
|
|
Hi All,
Is there any way to avoid carriage control characters while using DISPLAY DD statement in easytrieve?
To write out a packed decimal field as edited numeric, into a flat file (not report), I'm using the DISPLAY DD statement. But I would like to suppress the CC character.
Any and all help greatly appreciated!
Thanks. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Sep 13, 2007 7:11 am Post subject: |
|
|
Prabakar_S,
You can use CONTROL option to print carriage control character.The CONTROL option sets the print carriage control character for the print line. Valid alphanumeric values for literal-1 are 0 through 9, +, -, A, B, or C (not valid for use in report procedures). When filename-1 is associated with an extended reporting printer, the printer must support ANSI or Machine carriage controls.
Code: |
DISPLAY file-name-1 CONTROL literal-1
|
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Prabakar_S Beginner
Joined: 20 Dec 2006 Posts: 18 Topics: 7 Location: Chennai
|
Posted: Thu Sep 13, 2007 8:29 am Post subject: |
|
|
Kolusu,
Thanks for the info! But actually, i need to know a way to AVOID CC characters...
To elaborate--
A DISPLAY DD statement prints the actual text from postion 2, with a blank in position 1 (if CONTROL is omitted).
I would like to have the data from position 1 itself.
Any way to do this?
Thanks. |
|
Back to top |
|
 |
Prabakar_S Beginner
Joined: 20 Dec 2006 Posts: 18 Topics: 7 Location: Chennai
|
Posted: Thu Sep 13, 2007 8:30 am Post subject: |
|
|
Note: I'm trying to replicate REMOVECC functionality of SORT |
|
Back to top |
|
 |
|
|