Gil, 

<quote> 
So each control statement must either be labelled or a comment, since it's 
impossible not to use column 1 with RECFM=F.
</quote>

No, because a bit earlier in the same manual, under the "general coding rules" 
we find this:

The control statements are free-form; that is, the operation definer, operands, 
and comment field can appear anywhere in a statement, provided they appear in 
the proper order and are separated by one or more blank characters. Column 1 of 
each control statement must be blank, unless the first field is a label or a 
comment statement (see Inserting comment statements).

Rex

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> 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:
>>
>> 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 19:02:41 +0000, Pommier, Rex wrote:
>
>I see in the very next section of this manual is something called "Coding 
>restrictions".  Apparently you don't even need a special character to delimit 
>a comment, errr, remark...    I tagged "#" the relevant restrictions.  To 
>summarize, asterisk in column 1 is a comment, anything after a blank on any 
>other line is a remark.  
> 
I didn't read far enough.

><quote>
>
>The following rules apply to control statement preparation:
>
>    Operation definers and operands must be in uppercase EBCDIC.
>  #  Column 1 of each control statement can be used only for a label or for a 
> comment statement that begins with an asterisk in column 1.
>
So each control statement must either be labelled or a comment, since it's 
impossible not to use column 1 with RECFM=F.

I fins scant discussion of colons, such as:
• Continuation Column (72)
    Any character other than a blank in this column indicates that the
    present statement is continued on the next line. However, as long
    as the last character of the operand field on a line is a comma or
    semicolon or colon followed by a blank, the program assumes that
    the next line is a continuation line. The nonblank character in column
    72 is required only when a remark field is to be continued or when
    an operand is broken at column 71.

And an example:
*1234567 
*23456789012345678901234567890123456789012345678901234567890123456789012
INCLUDE COND=(5,4,CH,EQ,
 C'ABCD')
SORT FIELDS=(9,
             3,
ZD,
             A)
OUTREC FIELDS=(1,27,2X,
FIRST FIELD AND TWO BLANKS
51,2,BI,M11,
60:9,3,ZD,PD)  THIRD FIELD

(Garbled by Copy/Paste.)  I suspect colon has to do with field specification, 
but I can find no unified definition of fields.

--
Thanks,
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
The information contained in this message is confidential, protected from 
disclosure and may be legally privileged. If the reader of this message is not 
the intended recipient or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified that any disclosure, 
distribution, copying, or any action taken or action omitted in reliance on it, 
is strictly prohibited and may be unlawful. If you have received this 
communication in error, please notify us immediately by replying to this 
message and destroy the material in its entirety, whether in electronic or hard 
copy format. Thank you.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to