adspace
Answer Posted / Jay Devi
In COBOL, you can change the dataset name within a program using the ALTER DATA SET SELECT statement. This statement allows you to specify a new dataset name for an open sequential or indexed file during runtime. Here is an example:
ALTER DATA SET SELECT NEW-DATASET-NAME ASSIGNING TO OLD-DATASET-NAME.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers