Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Convert values from S9(7)V99 to S9(5)COMP-3
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 Moderator


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

PostPosted: Sun Sep 27, 2009 6:22 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us