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
 

 

Got File status of 39

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
ksathishkumar83

New User


Joined: 21 Nov 2006
Posts: 50
Location: India

PostPosted: Thu Sep 27, 2007 6:00 pm    Post subject: Got File status of 39
Reply with quote

VSAm definition:
DEFINE CLUSTER (NAME(U143734.SAT.VSAM) -
INDEXED-
TRACKS(100 200) -
KEYS(21 0) -
RECORDSIZE(80 80) -
) -
DATA (NAME(U143734.SAT.VSAM.DATA) -
) -
INDEX (NAME(U143734.SAT.VSAM.INDEX) -
)

program:

SELECT OUTPUT-FILE ASSIGN TO OUTILE
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS OUT-NO
FILE STATUS IS WS-OUTFILE-STATUS.


FD OUTPUT-FILE.
01 OUTPUT-RECORD.
05 OUT-NO PIC 9(5).
05 OUT-NAME PIC X(10).
05 OUT-SEX PIC X(1).
05 OUT-SUB PIC 9(3) OCCURS 5 TIMES.
05 FILLER PIC X(49).
Back to top
View user's profile Send private message

muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Thu Sep 27, 2007 6:17 pm    Post subject: Reply to: Got File status of 39 in COBOL program
Reply with quote

VSAM definition:

Code:
KEYS(21 0) -


Program:
Code:
RECORD KEY IS OUT-NO
05 OUT-NO PIC 9(5).


What is the Key field?

39 stands for:
The OPEN statement was unsuccessful because a conflict was detected between the fixed file attributes and the attributes specified for that file in the program. These attributes include the organization of the file (sequential, relative, or indexed), the prime record key, the alternate record keys, the code set, the maximum record size, and the record type (fixed or variable).
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 Testing rerad cursor for status with ... John F Dutcher DB2 7 Fri May 19, 2017 9:35 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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