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
 
getting error code 39

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

New User


Joined: 14 Oct 2008
Posts: 7
Location: india

PostPosted: Thu Dec 04, 2008 10:07 am    Post subject: getting error code 39
Reply with quote

hi I have defined a file like
Code:
SELECT IPRP-FILE ASSIGN TO IPRPFILE
                ACCESS DYNAMIC
                ORGANIZATION INDEXED
                RECORD KEY IS IPRP-KEY1
                ALTERNATE RECORD KEY IS IPRP-KEY2
                FILE STATUS WW-SVMIPRP-STATUS.

FD  IPRP-FILE.
01  SVMIPRP-INST-PRODUCT-RECORD.
    03  IPRP-KEY1.
        05  IPRP-LFI         PIC X(1).
        05  IPRP-SUB-NO      PIC X(7).
        05  IPRP-PLI         PIC X(15).
        05  IPRP-KEY3.
            07  IPRP-ITEM-NO     PIC S9(11) COMP-3.
            07  IPRP-KEY-SEQ-NO  PIC 9.
            07  IPRP-SEQ-NO  REDEFINES  IPRP-KEY-SEQ-NO
                                PIC 9.
    03  IPRP-ADDR-REFNO      PIC X(8).
    03  IPRP-PR-LIST         PIC 9(2).
    03  IPRP-PENDING         PIC X(1).
        88  IPRP-PEND-INSTALL                VALUE 'P'.
        88  IPRP-INSTALLED                   VALUE 'I'.
        88  IPRP-PEND-REMOVAL                VALUE 'Q'.
         88  IPRP-REMOVED                     VALUE 'R'.
     03  IPRP-TARIFF          PIC X(1).
     03  IPRP-KEY2.
         05  IPRP-A-LFI       PIC X(1).
         05  IPRP-ORD-NO      PIC 9(6).
         05  IPRP-ORD-NO-O  REDEFINES IPRP-ORD-NO PIC X(6).
         05  IPRP-ORD-PROD-NO PIC 9(3).
     03  IPRP-BIL-IND         PIC X.
     03  IPRP-FG-IND          PIC X.
     03  IPRP-LO-IND          PIC X.
     03  IPRP-FM-IND          PIC X.
     03  IPRP-PROD-CODE       PIC X(15).
     03  IPRP-D-CR            PIC 9(7)        COMP-3.
     03  IPRP-D-UPD           PIC 9(7)        COMP-3.
     03  IPRP-UPD-SEQ         PIC 9(3)        COMP-3.
     03  IPRP-REL-IND         PIC X(3).
     03  IPRP-NT-ID-NO        PIC X(3).
     03  IPRP-ACCT-NO         PIC X(3).
     03  IPRP-BIL-DATE        PIC X(5).
     03  IPRP-D-FG-INSTALLED  PIC 9(6)        COMP-3.
     03  IPRP-D-LO-INSTALLED  PIC 9(6)        COMP-3.
     03  IPRP-D-FM-INSTALLED  PIC 9(6)        COMP-3.
     03  IPRP-D-ALL-INSTALLED PIC 9(6)        COMP-3.
     03  IPRP-BILL-NO         PIC X(6).
     03  IPRP-BILL-SEQ-NO     PIC X(3).
     03  IPRP-USER-NO         PIC X(4).
     03  FILLER              PIC X(26).

in jcl
Code:
//IPRPFILE DD DSN=TUI.SA.SVMIPR1.INSTALL.PRODUCT.WK1.KSDS,DISP=SHR
//IPRPFIL1 DD DSN=TUI.SA.SVMIPR2.INSTALL.PRODUCT.WK1.PATH,DISP=SHR

when i m opening the file it is giving error 39

"Code"d for readability
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Dec 04, 2008 10:18 am    Post subject:
Reply with quote

Hello,

It may help if you post the idcams/define and the open.
Back to top
View user's profile Send private message
silentarya

New User


Joined: 11 Mar 2007
Posts: 35
Location: Chennai

PostPosted: Sat Dec 06, 2008 1:14 am    Post subject: Reply to: getting error code 39
Reply with quote

When you get the file status 39 that means it was unable to open the file due to mismatch in IDCAMS code and the file definition.... PLs cross check and if possible paste the idcams as well as the open statement.... Are you trying to open using output method or I/O method ... Are you adding the record as a first record to the VSAm file ????
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8167
Location: East Dubuque, Illinois, USA

PostPosted: Sat Dec 06, 2008 1:20 am    Post subject:
Reply with quote

Quote:
Are you adding the record as a first record to the VSAm file
Arya: the JCL lines reference the PATH name for the alternate index, and alternate indexes cannot be built unless the base VSAM file has at least one record in it, so your question has already been answered.

dalib: what's the LISTCAT output look like?
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm

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