IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

RRDS record definition error


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arun sarma

New User


Joined: 21 Feb 2008
Posts: 6
Location: bangalore

PostPosted: Sun May 18, 2008 7:01 pm
Reply with quote

HI,

I am using this rrds file declaration but it is throwing an error

ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.

SELECT INPUT-FILE ASSIGN TO INFILE
ORGANIZATION IS SEQUENTIAL
ACCESS MODE IS SEQUENTIAL
FILE STATUS IS INPUT-STATUS.

SELECT VSAM-FILE ASSIGN TO VSAMFILE
ORGANIZATION IS RELATIVE
ACCESS MODE IS DYNAMIC
RELATIVE KEY IS VSAM-KEY
FILE STATUS IS VSAM-STATUS.

DATA DIVISION.
FILE SECTION.

FD INPUT-FILE.
01 INPUT-REC.
05 INPUT-KEY PIC X(06).
05 INPUT-NAME PIC X(10).
05 FILLER PIC X(64).

FD VSAM-FILE.
01 VSAM-REC.
05 VSAM-KEY PIC 9(06).
05 VSAM-NAME PIC X(10).
05 FILLER PIC X(64).

can any one pls help me out

Thanks,

Krishnan
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sun May 18, 2008 9:09 pm
Reply with quote

Please post the error it is 'throwing' and the IDCAMS definition.......
Back to top
View user's profile Send private message
kalukakkad

New User


Joined: 10 Mar 2005
Posts: 81

PostPosted: Mon May 19, 2008 6:55 pm
Reply with quote

for RRDS you do not specify the KEY in FD section.
It has to be in working storage section.

Move the VSAM-KEY definition to working storage and try.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top