View previous topic :: View next topic |
Author |
Message |
mainframemouli Beginner
Joined: 23 Feb 2005 Posts: 87 Topics: 33
|
Posted: Tue Oct 25, 2005 9:09 am Post subject: Editing the Output file for comp-3 to character |
|
|
My Input file is having the length = 968 , FB
The same records from Input file should be copied to output file
But the Comp-3 values in the Position 52-56 in my input file needs to be copied to the output file in the position 92-96 in the character format.
It means in the Output file will have the same value both in 52-56 position
and 92-96 but the Position 52-56 is Comp-3
and 92-96 is character.
How can this be done can anyone throw the lights on it... |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Tue Oct 25, 2005 9:19 am Post subject: |
|
|
Mainframemouli,
Quote: |
It means in the Output file will have the same value both in 52-56 position
and 92-96 but the Position 52-56 is Comp-3
and 92-96 is character.
|
Comp-3 is a compressed format. Two digits are occupied in one byte. When you sat you want to expand a 5 byte comp-3, it would be expanded to 10 digits @ position 92. you can't have the same length at both 52 and 92. Your output file LRECL will then increase. Pls confirm what you want to do.
Your query can be easily done by using SORT. There has been lots of posts on this. Search for the keyword EDIT= on Utilities forum.
Thanks,
Phantom |
|
Back to top |
|
|
|
|