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
 
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: 8657
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 How to force a select query to abend neo4u DB2 5 Mon Apr 23, 2018 1:36 pm
No new posts 3270 Data stream error Benchwarmer CICS 6 Tue Apr 17, 2018 12:06 am
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am

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