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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
This topic is locked: you cannot edit posts or make replies. session stuck in TPX with status ACL amitc23 CA Products 1 Tue Dec 13, 2016 12:53 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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