MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Easytrieve - Remove CC character while using DISPLAY DD stmt

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Prabakar_S
Beginner


Joined: 20 Dec 2006
Posts: 18
Topics: 7
Location: Chennai

PostPosted: Thu Sep 13, 2007 6:47 am    Post subject: Easytrieve - Remove CC character while using DISPLAY DD stmt Reply with quote

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


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Sep 13, 2007 7:11 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Prabakar_S
Beginner


Joined: 20 Dec 2006
Posts: 18
Topics: 7
Location: Chennai

PostPosted: Thu Sep 13, 2007 8:29 am    Post subject: Reply with quote

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


Joined: 20 Dec 2006
Posts: 18
Topics: 7
Location: Chennai

PostPosted: Thu Sep 13, 2007 8:30 am    Post subject: Reply with quote

Note: I'm trying to replicate REMOVECC functionality of SORT
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group