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

Packed Decimal in SORT


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

New User


Joined: 24 Dec 2007
Posts: 9
Location: Chennai

PostPosted: Sat Apr 03, 2010 7:25 pm
Reply with quote

I have a field XXX with PIC S9(07)V9(06) COMP-3 in position 100.

I want XXX field with value LT 6

I have used the below SORT

Code:

   OUTFIL FILES=2,INCLUDE=(100,7,PD,LT,+000006000000), 
     OUTREC=(9,9)


But If i use the below SORT also, the same result is produced.

Code:

   OUTFIL FILES=2,INCLUDE=(100,7,PD,LT,+0000006000000),
     OUTREC=(9,9)


Please suggest which one is correct.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Apr 03, 2010 8:11 pm
Reply with quote

Hello,

Adding (or removing) most significant zeros does not change the value. . .

Those are the same and will hopefully give the same result. As would +6000000.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top