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

Numeric format conversion


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

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Fri Sep 01, 2006 4:45 am
Reply with quote

Hi,
I am having input record with 2 fields having picture clause as given below :

field1 s9(9) comp
filed2 s9(9) comp

In output record I want same fields in below given format

field1 9(5)
field2 9(15)

How can we achive this.

Regards,
Umed
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: Fri Sep 01, 2006 8:29 pm
Reply with quote

You can use DFSORT's INREC, OUTREC or OUTFIL statement to do the conversion.

field1: you can use p1,4,BI,TO=ZD,LENGTH=5

field2: you can use p2,4,BI,TO=ZD,LENGTH=15

where p1 is the starting position of field1 and p2 is the starting position of field2.

For some more information on numeric conversion with DFSORT, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/2.4.7?DT=20060615173822
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
Search our Forums:

Back to Top