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 BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm


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