Hi Billy,
Here is a mini sample you will need to change according to your need to test it
:
OUTFIL OUTREC=(1,4,BI,TO=ZD,LENGTH=10,X,
6,3,BI,TO=ZD,LENGTH=8,X,
10,2,BI,TO=ZD,LENGTH=6,X,
13,10,PD,TO=ZD,LENGTH=16,X,
24,5,PD,TO=ZD,LENGTH=10)
Alain
Kyndryl
Resiliency Services on Z Mainframe (Paris, France)
[email protected]
> Le 9 sept. 2026 à 22:55, Billy Ashton
> <[email protected]> a écrit :
>
> Hi everyone! It's been a while, and I have missed talking to you all.
>
> I have what I thought was easy, but I tried several things unsuccessfully. My
> request is easy. I want to convert a file from 2 Decimal (packed) fields and
> three different Binary fields to be all display numeric, and to use IBM
> DFSORT (application team request). Here is the layout:
>
> Normal Text Start 1, Length 23
> Binary 1 Start 24, Length 4 like: s9(08) Comp
> xSample: 0006AF56
> Text Start 28, Length 66
> Binary 2 Start 94, Length 2 like: 9(03) Comp
> xSample: 00034A
> Binary 3 Start 96, Length 2 like: s9(04) Comp
> xSample: 1091
> Text Start 97, Length 15
> Decimal 1 Start 112, Length 8 like: s9(11)V9999 Decimal
> xSample: 000010487322488C
> Decimal 2 Start 120, Length 5 like: s9(09)
> Decimal xSample: 128600121C
> Text Start 125, Length 22
>
> When done:
> Binary 1 should convert to a 10-digit number: 0000438102
> Binary 2 should convert to an 8-digit number: 00000842
> Binary 3 should convert to a 6-digit number: 004241
> Decimal 1 should convert to a 16-digit number: 0000010487322488
> Decimal 2 should convert to a 10-digit number: 0128600121
>
> I know the sort statement identifies the field based on the input format, but
> I couldn't find the correct format for these. Thanks for your help in
> creating the correct OUTREC= statement.
>
> Have a good evening!
>
> Billy
>
> ----------------------------------------------------------------------
> 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