MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PLISRTA and CA SORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
anbesivam
Beginner


Joined: 09 Aug 2006
Posts: 66
Topics: 14

PostPosted: Wed Dec 05, 2007 11:03 am    Post subject: PLISRTA and CA SORT Reply with quote

Hi,

Before writing this query, I checked all the post regarding PLISRTA in this forum. But I coudn't get exact answer.

My questions is, is there any difference between CA SORT and PLISRTA?

In my shop, intially they used CA Sort(SRTOPEN,SRTGET & SRTFILL) for sorting internal records. Now we are migrating all the sort programs in to PLISRTA call(As per my knowledge, it uses DFSort).

We are facing diffenence in output in sorting between CA SORT output and PLISRTA output.

Code:
CALL PLISRTA(                                                         
    ' SORT FIELDS=(' !! SORT_FIELDS !! ') ',                 
    ' RECORD TYPE=F,LENGTH=(' !! SORT_LRECL !! ') ',                   
    SORT_CORE,SORT_RETC,'SORTIN'); 


Above code, all the parameters and sort fields are same in CA Sort and PLISTRA.

Output in CA SORT:

Code:
0835030486585000               
0835030614765000               
0835030614765001
0835030614765002
0835030614765003
0835030644835000


PLISRTA output:

Code:
0835030486585000               
0835030614765000               
0835030614765003
0835030614765001
0835030614765002
0835030644835000


See the last number 0,3,1,2 in PLISRTA is different to 0,1,2,3 in CA SORT.

My requirement is, PLISTRA and CA SORT should work exactly the same.

Please guide me, if any where i am missing something. Thanks.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Wed Dec 05, 2007 11:35 am    Post subject: Reply with quote

The difference here seems to be that EQUALS is in effect for CA-SORT, but not for DFSORT. That has nothing to do with PLISRTA. It just means that your site does not have EQUALS=YES as the installation default for DFSORT. You can get what you want by specifying the following in your job:

Code:

//DFSPARM DD *
  OPTION EQUALS
/* 


This tells DFSORT to use EQUALS which guarantees that records with the same key will be sorted in their original order.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
anbesivam
Beginner


Joined: 09 Aug 2006
Posts: 66
Topics: 14

PostPosted: Thu Dec 06, 2007 3:40 am    Post subject: Reply with quote

Hi Frank,

You are exactly right. it works if I introduce 'EQUALS' in the PLISTRA parameter.

Other than this, is there any direct matching(Like, if SRTGET,SRTFILL used in CA SORT, we need to use certain parameter to match the same in PLISRTA) between, CA SORT and PLISRTA ? or its depends up on the sort records ?

Thanks.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Thu Dec 06, 2007 12:48 pm    Post subject: Reply with quote

I can't answer your question. I don't know anything about CA-SORT's SRTGET and SRTFILL.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
anbesivam
Beginner


Joined: 09 Aug 2006
Posts: 66
Topics: 14

PostPosted: Fri Dec 07, 2007 6:19 am    Post subject: Reply with quote

Hi Frank,

Thanks for your response.

I will wait for the response, if any expertise faced this kind of situation and experience on solving this. Rolling Eyes

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group