Re: dfsort - Reformat file

2022-09-07 Thread Paul Gilmartin
On Wed, 7 Sep 2022 16:24:07 +, Sri h Kolusu wrote: >>> That contradicts "Column 1 ... blank" on page 80. A blank in column 1 is >>> *used* to indicate a control statement. > >Gil, > >Not sure as to what is contradictory. > >Statement 1 : "Column 1 of each control statement must be blank,

Re: dfsort - Reformat file

2022-09-07 Thread Sri h Kolusu
>> That contradicts "Column 1 ... blank" on page 80. A blank in column 1 is >> *used* to indicate a control statement. Gil, Not sure as to what is contradictory. Statement 1 : "Column 1 of each control statement must be blank, unless the first field is a label or a comment statement (see

Re: [EXTERNAL] Re: dfsort - Reformat file

2022-09-06 Thread Paul Gilmartin
On Tue, 6 Sep 2022 21:32:37 +, Pommier, Rex wrote: > > >So each control statement must either be labelled or a comment, since it's >impossible not to use column 1 with RECFM=F. > > >No, because a bit earlier in the same manual, under the "general coding rules" >we find this: > >The control

Re: dfsort - Reformat file

2022-09-06 Thread Sri h Kolusu
>> (Garbled by Copy/Paste.) Gil, Did you try enclosing the control cards using "Courier New" font ? It retains the spacing. >> So each control statement must either be labelled or a comment, since it's >> impossible not to use column 1 with RECFM=F. Not sure what you meant by IMPOSSIBLE .

Re: [EXTERNAL] Re: dfsort - Reformat file

2022-09-06 Thread Pommier, Rex
statements). Rex -Original Message- From: IBM Mainframe Discussion List On Behalf Of Paul Gilmartin Sent: Tuesday, September 6, 2022 3:44 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Re: dfsort - Reformat file On Tue, 6 Sep 2022 12:03:44 -0700, Tom Brennan wrote: >> >>

Re: dfsort - Reformat file

2022-09-06 Thread Paul Gilmartin
On Tue, 6 Sep 2022 12:03:44 -0700, Tom Brennan wrote: >> >> I just used a Special character to denote the start of a comment. You can >> have any character. > >And using # as that character shows we are being assimilated :) > Kolusu was just trying to make me comfortable. On Tue, 6 Sep 2022

Re: dfsort - Reformat file

2022-09-06 Thread Tom Brennan
On 9/6/2022 10:19 AM, Sri h Kolusu wrote: I just used a Special character to denote the start of a comment. You can have any character. And using # as that character shows we are being assimilated :) -- For IBM-MAIN

Re: [EXTERNAL] Re: dfsort - Reformat file

2022-09-06 Thread Pommier, Rex
f Sri h Kolusu Sent: Tuesday, September 6, 2022 11:20 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Re: dfsort - Reformat file >> BTW, what's the syntax for comments in DFSORT command files? Gil, It is documented here https://urldefense.com/v3/__https://www.ibm.com/docs/en/zos/2

Re: dfsort - Reformat file

2022-09-06 Thread Paul Gilmartin
On Tue, 6 Sep 2022 17:19:22 +, Sri h Kolusu wrote: > >I just used a Special character to denote the start of a comment. You can have >any character. > Are those "comments", which the Guide says must start with an asterisk in column 1, or "remarks" a term which the Guide uses repeatedly, but

Re: dfsort - Reformat file

2022-09-06 Thread Sri h Kolusu
>> What are the "# ..." constructs? I see "remarks" mentioned in the Guide, >> but no description of the syntax of remarks (did I miss one?) I just used a Special character to denote the start of a comment. You can have any character. > I suspect the convention would be comfortable, even

Re: dfsort - Reformat file

2022-09-06 Thread Paul Gilmartin
On Tue, 6 Sep 2022 16:19:30 +, Sri h Kolusu wrote: > >It is documented here > >https://www.ibm.com/docs/en/zos/2.5.0?topic=rules-inserting-comment-statements > >>> The solution above, lacking comments and with 8 numeric positional >>> parameters is horribly opaque to the novice. > >If there

Re: dfsort - Reformat file

2022-09-06 Thread Sri h Kolusu
>> BTW, what's the syntax for comments in DFSORT command files? Gil, It is documented here https://www.ibm.com/docs/en/zos/2.5.0?topic=rules-inserting-comment-statements >> The solution above, lacking comments and with 8 numeric positional >> parameters is horribly opaque to the novice. If

Re: dfsort - Reformat file

2022-09-06 Thread Paul Gilmartin
On Mon, 5 Sep 2022 16:25:20 -0700, Retired Mainframer wrote: >"It didn't work" doesn't tell us very much. How did the results differ from >what you wanted? > >Is it always four blanks in field 1, two in field 2, two in field 3, and 2 in >field 4? Is the length of each field constant across all

Re: dfsort - Reformat file

2022-09-06 Thread Sri h Kolusu
>> i used OUTREC BUILD=(1,80,SQZ=(SHIFT=LEFT)) and it didn't work out Could someone pls let me know how to make this ? Ron, To begin with the leading data in 3rd column is NOT spaces. It seems that the data is Variable data where the first 2 bytes is a binary field that contains the length of

Re: dfsort - Reformat file

2022-09-05 Thread Retired Mainframer
22,21,45,5) come close to what you want? -Original Message- From: IBM Mainframe Discussion List On Behalf Of Ron Thomas Sent: Monday, September 5, 2022 10:31 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: dfsort - Reformat file Hi , We have a input PIPE DELIMITED file as follows of lrecl

dfsort - Reformat file

2022-09-05 Thread Ron Thomas
Hi , We have a input PIPE DELIMITED file as follows of lrecl = 80. Need to remove the leading spaces with out disturbing the 3 column values 1652087|..0049|..OPTICAL |..0170| 2130994|..0006|..STATIONERY |..0716| 2199447|..0078|..SERVE OVER PIZZA|..0410|