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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm

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