From: J L. T. <jlt...@ma...> - 2022-06-23 00:32:26
|
Jeff, In a post to oor...@li..., René provided a sample pipeline to process z/OS SMF records using the nrx specs stage. I thought you might like to be aware of another feature of the CMS specs stage that could be incorporated into nrx specs, so I'm sending it to you as well. ----------- René I see that in this pipeline you use reverse with specs to trim trailing parts of your records. I understand that the nrx specs stage does not yet completely emulate the CMS specs stage, but I hope that as it is improved it will fully support CMS-type inputRange notation. In CMS/TSO Pipelines, Author's Edition, pp. 165, 166 we see that | "An inputRange can contain a negative number; this specifies that the count is from the | end of the record rather than from the beginning: | word -2 1 | The general form of a range consists of two numbers separated a semicolon. Thus, there | is a third idiom to refer to the entire record: 1;-1. When both numbers are positive, | there is no difference between using semicolon and using a hyphen to delimit the numbers. When the two numbers have the same sign, the first number must be less than or equal to the second one; it is an error to specify an ending column that is before the beginning one. (Recall that -2 is less than -1.) When the numbers have different signs, a null input field is used when the beginning position is after the end position: | word 2;-2 1 Thus, your pipeline could eventually use | : | | specs 7;-2 1 | : | | specs 77;-10 1 | : Leslie On 2022-06-22 07:45:43 Jeff Hennick wrote: > I am in the process of adding FIELDS (and an enhanced FS/WS) to SPECS. > Currently having problems remembering how to get the stage to work in my > testing. Mike, I am using, and expanding, your idea/suggestion on changing > the spaces to something else that is not already in the record, etc. Thank > you! Jeff Hennick -- Operating System: Linux Distribution: openSUSE Leap 15.4 x86_64 java version "18" 2022-03-22 NetRexx portable processor 4.03-GA build 260-20220503-1730 |