Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us