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
 
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 File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

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