Hello kolusu,

it reminds me of some great moments shared around dfsort challenges…

Do you have some news about Frank ?

Alain
France Resiliency Services on Z Mainframe
[email protected] 

> Le 4 oct. 2025 à 04:10, Sri Hari Kolusu <[email protected]> a écrit :
> 
> 
>> 
>> So, this will not work with SEQNUM:
> BUILD=(001:(((SEQNUM,9,ZD,START=K1,INCR=I1),
> 
> Billy Ashton,
> 
> You are using BUILD which cannot see the freshly built sequence number.  So 
> switch to using OVERLAY as shown Alan benveniste and you can make multiple 
> computations on the same field.
> 
> I am guessing that you are generating the 9-byte record file. If so, please 
> use this untested control cards
> 
> //SYSIN    DD *
>  OPTION COPY
>  INREC BUILD=(9X)
>  OUTFIL REPEAT=1000000,
>         OVERLAY=(SEQNUM,9,ZD,START=1,INCR=4,
>                 1:((1,9,ZD,ADD,-999999999),MUL,-1),M25,LENGTH=9)
> /*
> 
> 
>>      S.Karthik Premnath : Just guessing,  If on the fly not possible, why 
>> not output the data into a temp file and make another pass where the seqnum 
>> can be treated as any normal integer ?
> 
> You don’t have to as DFSORT can do arithmetic calculations in the same pass 
> of data
> 
>>      S.Karthik Premnath : > Maybe you could try exploiting 
>> Hiperspace/Dataspace if possible. Not sure about underlying limitations.
> 
> I appreciate you trying to help, but DFSORT will only use 
> HIPERSPACE/DATASPACES for SORTING the data.  Here OP is only COPYING/CREATING 
> the data and DFSORT will not use them.
> 
>>      Alain Benvéniste  Could you test this :
> 
> Thanks Alan.  I am sure that provided control cards will work.  Good to see 
> you.
> 
> Thanks,
> Kolusu
> 
> 
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to