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 Record Not found in AlX but record re... mukun264 COBOL Programming 4 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


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