Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

X 8.1.5 DELETE Statement

X The DELETE statement is an extended source library statement. It removes
X COBOL statements from the source program included by a BASIS statement.

 X  ___ Format _____________________________________________________________ 
 X |                                                                        |
 X | >>__ _________________ __DELETE__sequence-number-field______________>< |
 X |     |_sequence-number_|                                                |
   |                                                                        |

X sequence-number

X Can optionally appear in columns 1 through 6, followed by a space.
X The content of this field is ignored.


X Can appear anywhere within columns 1 through 72. It must be followed
X by a space and the sequence-number-field. There must be no other text
X in the statement.

X sequence-number-field

X Each number must be equal to a sequence-number in the BASIS source
X program. This sequence-number is the 6-digit number the programmer
X assigns in columns 1 through 6 of the COBOL coding form. The numbers
X referenced in the sequence-number-fields of any INSERT or DELETE
X statements must always be specified in ascending numeric order.

X The sequence-number-field must be any one of the following:

X Each entry in the sequence-number-field must be separated from the
X preceding entry by a comma followed by a space. For example:

 X       000250 DELETE  000010-000050, 000400, 000450

X Source program statements can follow a DELETE statement. These source
X program statements are then inserted into the BASIS source program before
X the statement following the last statement deleted (that is, in the
X example above, before the next statement following deleted statement
X 000450).

X If a DELETE statement is specified, beginning in column 12 or higher, and
X a valid sequence-number-field does not follow the key word DELETE, the
X compiler assumes that this DELETE statement is the COBOL DELETE statement.

X New source program statements following the DELETE statement can include
X DBCS or EUC data items.

X Note: If INSERT or DELETE statements are used to modify the COBOL source
X program provided by a BASIS statement, the sequence field of the COBOL
X source program must contain numeric sequence-numbers in ascending order.
X The source file remains unchanged. Any INSERT or DELETE statements
X referring to these sequence-numbers must occur in ascending order.

Previous Topic Next Topic Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.

Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS

Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.