On Tue, 25 Oct 2022 10:33:23 -0500, Paul Gilmartin <[email protected]> wrote:

>On Tue, 25 Oct 2022 08:55:09 -0500, Walt Farrell wrote:
>>>>
>>>>>On Sat, 22 Oct 2022 04:09:43 +0000, Sri h Kolusu  wrote:
>>>>>>                      %03=(ENDBEFR=C'.',FIXLEN=8),   # Node 3
>>>>>>     ...
>>>>>Thanks.  I've wished for something line FIXLEN in regular expressions.
>>>>
>>>>Got an example of what you want in regular expressions?
>>>>
>>>    NONVSAM ------- MYFILE.ABLA.MIDDLE.N04.REPT3.NOTUSE
>>>         DATASET-OWNER-----(NULL)     CREATION--------2022.200
>>>
>>>becomes:
>>>    N04      REPT3    20220719 MIDDLE  
>>
>>Sorry; doesn't help. I should have been more specific, and started with "what 
>>does FIXLEN do that you'd want to see in a regular expression?"
>>
><https://www.ibm.com/docs/en/zos/2.5.0?topic=fields-parse-parameters>
>
>See the ply cited where Sri h Kolusu addressed the OP's requirement.  Could 
>this have been
>done in awk or sed with regular expressions?  In REXX I used LEFT() to achieve 
>the function.

Thanks for the doc reference.

So FIXLEN is applying to the output rather than the input. I don't think there 
are functions like that in standard regular expression processing, since it's 
about input parsing, not creation of output records. I have no idea if sed or 
awk have any specific functions like that for formatting their output, as I 
selecom use them. 
Sorry.

-- 
Walt

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

Reply via email to