Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to sort file with comp data type

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to sort file with comp data type
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    Post subject:
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: 8597
Location: Back in jolly old England

PostPosted: Mon Nov 17, 2008 7:33 pm    Post subject:
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: 2285
Location: @my desk

PostPosted: Mon Nov 17, 2008 7:47 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 5 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us