OUTFIL or OUTREC



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

OUTFIL or OUTREC

Postby ranga_subham » Thu Jul 25, 2013 6:37 pm

Hi,

I am using below given SORT card to get output data.

//SYSIN    DD *                                                     
 JOINKEYS FILES=F1,FIELDS=(21,8,A)                                   
 JOINKEYS FILES=F2,FIELDS=(17,8,A)                                   
 JOIN UNPAIRED,F1,F2                                                 
 REFORMAT FIELDS=(F1:1,28,F2:17,45)                                 
 SORT FIELDS=(1,8,CH,A)                                             
 INCLUDE COND=(29,1,CH,EQ,C' ',OR,21,8,CH,EQ,29,8,CH)               
 OUTFIL IFTHEN=(WHEN=(29,1,CH,EQ,C' '),                             
                BUILD=(1,8,C':',21,8,C':',C'### OMITTED ###',40:C':',
                                          C'### OMITTED ### ')),     
        IFTHEN=(WHEN=(21,8,CH,EQ,29,8,CH),                           
                BUILD=(1,8,C':',29,8,C':',37,21,C':',58,16))         
//                                                                   


Whether I use OUTFIL or OUTREC, I get the same results. Can you please help me in understanding the exact difference?

Thanks.
ranga_subham
 
Posts: 279
Joined: Fri Jul 18, 2008 7:46 pm
Has thanked: 0 time
Been thanked: 1 time

Re: OUTFIL or OUTREC

 

Re: OUTFIL or OUTREC

Postby dick scherrer » Thu Jul 25, 2013 10:00 pm

Hello,

If you use the same creteris why would you expect different results?

Show a few input records and the output you expect from both approaches . . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: OUTFIL or OUTREC

Postby dick scherrer » Thu Jul 25, 2013 10:03 pm

Your duplicate post has been removed . . . :(

You have been here long enough to know better.

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post