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
 

 

Sort:if data being sorted are same ! order of output query?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sunny_io

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Fri Oct 23, 2009 11:33 am    Post subject: Sort:if data being sorted are same ! order of output query?
Reply with quote

Hello All.

In my jcl, the sort card is : SORT FIELDS=(01,12,CH,A)

//PS010 EXEC PGM=SORT,
// COND=(4,LT)

I call SORT pgm in JCL

1st 12 bytes of my data are all same , I can't seem to understand the order in which i received the output.

Input:
A000000000000000000000U
A000000000002009102114501111DMC
A000000000002009102114501111MCC
A000000000002009102114501112DMC

Result:
A000000000002009102114501112DMC
A000000000002009102114501111MCC
A000000000002009102114501111DMC
A000000000000000000000U
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: Fri Oct 23, 2009 11:38 am    Post subject:
Reply with quote

To preserve the position or records within duplicated sort fields use the EQUALS parameter, otherwise results can vary from run to run.
Back to top
View user's profile Send private message
sunny_io

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Fri Oct 23, 2009 12:39 pm    Post subject: works fine ow
Reply with quote

Hello..
With PARM = EQUALS , its working fine now.. thanks
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


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