View previous topic :: View next topic
|
Author |
Message |
antonyjoseph
New User
Joined: 11 Apr 2007 Posts: 28 Location: India
|
|
|
|
I have a file where format is as follows
1-10 character
11-15 COMP 3
How can i display this using outrec statement in normal format. I get special characters when i try it. |
|
Back to top |
|
|
Prajesh_v_p
Active User
Joined: 24 May 2006 Posts: 133 Location: India
|
|
|
|
Hi Antony,
Try this out
OUTREC FIELDS=(1:1,10,11:11,5,PD,TO=ZD,LENGTH=10)
Syntax might not be accurate.. Pls check SYNCSORT appl prog guide for more details...
Thanks,
Prajesh |
|
Back to top |
|
|
antonyjoseph
New User
Joined: 11 Apr 2007 Posts: 28 Location: India
|
|
|
|
Thanks
Will check this out.
Got the code working with "edit" |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Yes, EDIT can make the output "pretty", but not as easy to use as input to some other process. "TO=ZD" will convert the data from packed to zoned decimal.
Depending on how the "output" is to be used, you might use either. |
|
Back to top |
|
|
|