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

I have to sort a file on a Numeric field PIC 9(09).


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

New User


Joined: 23 Jul 2010
Posts: 10
Location: hyderabad

PostPosted: Fri Jun 15, 2012 11:56 pm
Reply with quote

I have to sort a file on a Numeric field PIC 9(09).
What should I use as the sort card ? for example the starting pos is 1 and the length is 9 .
Which one of the following is correct ?
Sort Fields = (1,9,ZD,A) or (1,5,PD,A) or (1,9,FS,A) ?
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Sat Jun 16, 2012 12:03 am
Reply with quote

sreelu.s wrote:
I have to sort a file on a Numeric field PIC 9(09).
What should I use as the sort card ? for example the starting pos is 1 and the length is 9 .
Which one of the following is correct ?
Sort Fields = (1,9,ZD,A) or (1,5,PD,A) or (1,9,FS,A) ?


sreelu.s,

You would use ZD format. Check this link which explains DFSORT Formats for COBOL Data Types
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top