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: 8687
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: 2361
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 To remove spaces from a VB file using... Selvarajars DFSORT/ICETOOL 2 Thu Jun 21, 2018 6:57 pm
This topic is locked: you cannot edit posts or make replies. To remove spaces in a variable length... Selvarajars JCL & VSAM 1 Thu Jun 21, 2018 1:07 pm
No new posts B059 PREMATURE END OF FILE mvmadhuvenkatesh CA Products 5 Tue Jun 19, 2018 10:50 am
No new posts Formating output file Niki DFSORT/ICETOOL 3 Fri Jun 15, 2018 3:27 pm
No new posts Need help on TDQ load from file using... subratarec CICS 4 Wed Jun 13, 2018 11:32 pm

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