Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us