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
 
Diferencias ordenamiento CA vs dfsort a nivel record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
josessegura

New User


Joined: 12 Feb 2015
Posts: 6
Location: México,D.F.

PostPosted: Fri Feb 13, 2015 5:08 am    Post subject: Diferencias ordenamiento CA vs dfsort a nivel record
Reply with quote

Hello,

I'm trying to migrate from CA (7.1) to DFSORT (V1R12), but the result of both is different record level, happens when the keys for those ordered are equal, eg:

instructions in CA
Code:

DATA NAMES = (ONE, 01.14, CH)
            (TWO, 15.10, CH)
SORT FIELDS = (ONE, A, TWO, A)


When I migrate to DFSORT, is as follows:

Code:
SORT FIELDS = (01.14, CH, A,
              15.10, CH, A)


the SORTIN the process is as follows:

Code:
AAAAAAAAAAAAAADDDDDDDDDD4
BBBBBBBBBBBBBBCCCCCCCCCC2
AAAAAAAAAAAAAAFFFFFFFFFFFF3
AAAAAAAAAAAAAAEEEEEEEEEEE1
AAAAAAAAAAAAAAEEEEEEEEEEE2



The result in CA is:
Code:

AAAAAAAAAAAAAADDDDDDDDDD4
[b]AAAAAAAAAAAAAAEEEEEEEEEEE1
AAAAAAAAAAAAAAEEEEEEEEEEE2[/b]
AAAAAAAAAAAAAAFFFFFFFFFFFF3
BBBBBBBBBBBBBBCCCCCCCCCC2


DFSORT the result is:
Code:

AAAAAAAAAAAAAADDDDDDDDDD4
[b]AAAAAAAAAAAAAAEEEEEEEEEEE2
AAAAAAAAAAAAAAEEEEEEEEEEE1[/b]
AAAAAAAAAAAAAAFFFFFFFFFFFF3
BBBBBBBBBBBBBBCCCCCCCCCC2



The system logic is correct in both cases, but the system level record is not the same.

that differences should be?
how I can match the results?
thx

Code'd
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10309
Location: italy

PostPosted: Fri Feb 13, 2015 5:19 am    Post subject: Reply to: Diferencias ordenamiento CA vs dfsort a nivel reco
Reply with quote

when using DFSORT or any smart sort program
for <duplicate> keys the order is unpredictable,
the workaround for DFSORT is to use OPTION EQUALS
which will for <duplicate> keys preserve the original relative sequence

speak to Your support to find out the defaults for each product, and You will find the why for the different behavior.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Feb 13, 2015 1:13 pm    Post subject: Reply to: Diferencias ordenamiento CA vs dfsort a nivel reco
Reply with quote

A couple of things to add.

Talk to IBM. If you are migrating to DFSORT, the DFSORT team will be happy to assist with questions that arise.

It looks like CA-Sort can define symbols. So can DFSORT. Have a look at SYMNAMES in the documentation, and SYMNOUT which shows the generated symbol table. (I hope that ONE and TWO are only examples for this post...).

All the DFSORT manuals are available online.

1.12 is somewhat dated, you may want to check with IBM about support (or your boss should want to).
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am

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