MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Relative Record Data Set

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
SAJ



Joined: 23 Jul 2008
Posts: 0
Topics: 1

PostPosted: Tue Aug 19, 2008 8:18 am    Post subject: Relative Record Data Set Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Aug 19, 2008 9:05 am    Post subject: Reply with quote

Questions like this belong in the interview forum or mainframe challange.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group