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

Sort format for cobol edited picture clause


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

New User


Joined: 30 Sep 2006
Posts: 60

PostPosted: Fri Nov 07, 2008 4:41 am
Reply with quote

Hi,

I have a file(FB LRECL 280) that has a data field that is in the edited picture format PIC +9(06).9(03) in positions 132-142.

File layout
Item 8-12
Qty 132-142

Is there a data format that can be used to sort the qty field directly in the numeric order?

Sample date (132-142)
+000000.000
+000015.000
-000002.000
+000000.000
+000005.000

Thanks,
Aneesh.
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 Nov 07, 2008 5:15 am
Reply with quote

Yes, assuming the sign is always +, you can use DFSORT's UFF format. For example:

Code:

   SORT FIELDS=(132,11,UFF,A)


If the sign could be + or -, you could use DFSORT's SFF format.
Back to top
View user's profile Send private message
Aneesh

New User


Joined: 30 Sep 2006
Posts: 60

PostPosted: Fri Nov 07, 2008 5:22 am
Reply with quote

Thanks a lot, Frank.
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
Search our Forums:

Back to Top