IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Convert values from S9(7)V99 to S9(5)COMP-3


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vkumard

New User


Joined: 13 Dec 2005
Posts: 9

PostPosted: Fri Sep 25, 2009 12:27 pm
Reply with quote

My input file has data like

00000297G
00011473G
00011473G

this field format is S9(7)V99

Now I want this field to convert into S9(5) COMP-3 and to create a new file.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Sun Sep 27, 2009 6:22 am
Reply with quote

What is the starting position of the inut field?

What do you want for the starting position of the output field?

I think you mean a 5-byte COMP-3 (PD) field rather than S9(5) COMP-3 since S9(5) COMP-3 would only have 5 digits and your original ZD number has 9 digits.

IF so, you would use DFSORT control statements something like this assuming your ZD field starts in position 1:

Code:

   INREC BUILD=(1,9,ZD,TO=PD,LENGTH=5)


If that's not what you want, then you need to do a better job of describing what you do want with a conversion that makes sense.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
Search our Forums:

Back to Top