cobol
DELETE déclaration
Recherche…
Remarques
L'instruction DELETE
supprime les enregistrements du stockage de masse. Certains compilateurs permettent d'utiliser l'instruction DELETE
avec une clause FILE
pour supprimer les noms FD
(ainsi que toute structure d'indexation associée pouvant être requise par le moteur de gestion de base de données utilisé).
Supprimer un enregistrement, entrez le champ clé primaire
identification division.
program-id. deleting.
environment division.
configuration section.
input-output section.
file-control.
select optional indexed-file
assign to "indexed-file.dat"
status is indexing-status
organization is indexed
access mode is dynamic
record key is keyfield
alternate record key is altkey with duplicates
.
...
procedure division.
move "abcdef" to keyfield
*> Delete a record by index
delete indexed-file record
invalid key
display "No delete of " keyfield end-display
not invalid key
display "Record " keyfield " removed" end-display
end-delete
perform check-delete-status
...
Modified text is an extract of the original Stack Overflow Documentation
Sous licence CC BY-SA 3.0
Non affilié à Stack Overflow