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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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