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 

Editing the Output file for comp-3 to character

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


Joined: 23 Feb 2005
Posts: 87
Topics: 33

PostPosted: Tue Oct 25, 2005 9:09 am    Post subject: Editing the Output file for comp-3 to character Reply with quote

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
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Oct 25, 2005 9:19 am    Post subject: Reply with quote

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
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