Order of input records shouldn't be changed



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Order of input records shouldn't be changed

Postby Hariprasad K » Thu Jul 12, 2012 8:55 pm

Hi,

I would like to do a sort such that the order of input records shouldn't be changed. (copying one file data into anoterh file).

Thanks,
Hariprasad.K
Hariprasad K
 
Posts: 19
Joined: Sat Feb 25, 2012 5:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Order of input records shouldn't be changed

Postby enrico-sorichetti » Thu Jul 12, 2012 8:59 pm

read in the DFSORT manuals about the COPY function

or if You are really SORTING and want to preserve the sequence for records with the same <sort key> about the OPTION EQUALS
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Order of input records shouldn't be changed

Postby NicC » Thu Jul 12, 2012 10:06 pm

or use a copy utility such as IEB/ICEGENER
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Order of input records shouldn't be changed

Postby skolusu » Thu Jul 12, 2012 10:11 pm

Hariprasad K,

Use the following DFSORT JCL
//STEP0100 EXEC PGM=SORT       
//SYSOUT   DD SYSOUT=*         
//SORTIN   DD DSN=Your input file,DISP=SHR
//SORTOUT  DD DSN=Your output file,
//            DISP=(NEW,CATLG,DELETE),
//            SPACE=(CYL,(X,Y),RLSE)
//SYSIN    DD *                 
  SORT FIELDS=COPY             
//*
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
skolusu
 
Posts: 586
Joined: Wed Apr 02, 2008 10:38 pm
Has thanked: 0 time
Been thanked: 39 times


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post