Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 8593
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: 2238
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us