Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

RRDS record definition error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: RRDS record definition error
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: 2150
Location: At my coffee table

PostPosted: Sun May 18, 2008 9:09 pm    Post subject:
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    Post subject: Reply to: RRDS record definition error
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts How to see VIEW definition from BMC c... rohanthengal DB2 1 Thu May 04, 2017 1:50 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us