Hello, this is looks like COBOL the way you defined the statements.  I would 
strongly suggest you you feed the info in this post to either ChatGPT or 
Gemini.  You stand a good chance of getting a quick answer.  Let me know the 
outcome, I really interested in this one.
Sent from my iPhone

> On Sep 9, 2026, at 16:55, Billy Ashton 
> <[email protected]> wrote:
> 
> 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

Reply via email to