View previous topic :: View next topic |
Author |
Message |
SAJ
Joined: 23 Jul 2008 Posts: 0 Topics: 1
|
Posted: Tue Aug 19, 2008 8:18 am Post subject: Relative Record Data Set |
|
|
An RRDS (Relative Record Data Set) is loaded with records with relative numbers
from 1 to 100. Which record will be deleted by the following COBOL code?
FILE-CONTROL.
SELECT RRDS-FILE ASSIGN TO RRDSFL
ORGANIZATION IS RELATIVE
ACCESS IS RANDOM
RELATIVE KEY IS KEY-1
FILE STATUS IS WS-STATUS.
...
PROCEDURE DIVISION.
OPEN I-O RRDS-FILE.
MOVE 21 TO KEY-1.
DELETE RRDS-FILE INVALID KEY PERFORM ERROR-RTN. |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Tue Aug 19, 2008 9:05 am Post subject: |
|
|
Questions like this belong in the interview forum or mainframe challange. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
|
|