IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Got File status of 39


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: Canada

PostPosted: Thu Sep 27, 2007 6:17 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top