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

how to sort file with comp data type


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dalib123

New User


Joined: 14 Oct 2008
Posts: 7
Location: india

PostPosted: Mon Nov 17, 2008 12:16 pm
Reply with quote

Hi
SORT FIELDS=(18,4,BI,A,
1,2,BI,A,
5,15,CH,A)

01 TOP01.
10 S-ORDDPROD-NUMB PIC S9(4) USAGE COMP.
10 N-PRODASM PIC X(15).
10 C-ORDCNCLN-NUMB PIC S9(9) USAGE COMP.

is the correct way to sort the file firstly with C-ORDCNCLN-NUMB then S-ORDDPROD-NUMB and finally by N-PRODASM..
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Mon Nov 17, 2008 7:26 pm
Reply with quote

I think you meant
Code:
   SORT FIELDS=(18,4,BI,A,
               1,2,BI,A,
               3,15,CH,A)
didn't you?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Nov 17, 2008 7:33 pm
Reply with quote

Quote:
10 C-ORDCNCLN-NUMB PIC S9(9) USAGE COMP.

Should this not be 18,5,BI,A ?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Mon Nov 17, 2008 7:47 pm
Reply with quote

Quote:
10 C-ORDCNCLN-NUMB PIC S9(9) USAGE COMP.


I thought that has to be a 18,4,FI,A icon_confused.gif
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Mon Nov 17, 2008 8:04 pm
Reply with quote

Yes, BI means unsigned binary, FI is signed binary.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Store the data for fixed length COBOL Programming 1
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
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top