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

Illogic error while writing a VSAM file thru CICS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Mon Dec 01, 2008 12:27 pm
Reply with quote

hi all,

This is my vsamdef ...
Code:
DELETE MNAP.MFQT.VSM10V.DOTMST -             
  PURGE -                                       
       CLUSTER                                 
IF MAXCC EQ 8 THEN   -                         
       SET MAXCC EQ 0                           
  DEFINE  CLUSTER -                             
         (NAME(MNAP.MFQT.VSM10V.DOTMST) -       
          RECORDS(75000 7500) -                 
          RECSZ(600 600) -                     
          SHR(2 3) -                           
          FREESPACE(20 20) -                   
          INDEXED -                             
          KEYS(12 0)) -                         
         DATA -                                 
          (NAME(MNAP.MFQT.VSM10V.DOTMST.DATA ) -
          RECSZ(600 600) -                     
          CISZ(18432)) -                       
         INDEX -                               
          (NAME(MNAP.MFQT.VSM10V.DOTMST.INDEX))
  IF MAXCC EQ 0 THEN -                         
  REPRO INFILE(FILE10) -                       
        ODS(MNAP.MFQT.VSM10V.DOTMST) REUSE     
  DEFINE ALTERNATEINDEX -                       
       (NAME(MNAP.MFQT.VSMR1V.CAIALT) -       
        RELATE(MNAP.MFQT.VSM10V.DOTMST) -     
        KEYS(8 176) -                         
        RECORDS(75000 7500) -                 
        SHR(2 3) -                           
        RECSZ(25 60013) -                     
        FREESPACE(20 20) -                   
        NONUNIQUEKEY -                       
        NOREUSE  -                           
        UPGRADE) -                           
       DATA -                                 
        (NAME(MNAP.MFQT.VSMR1V.CAIALT.DATA) -
        RECSZ(25 60013) -                     
        CISZ(18432)) -                       
       INDEX -                               
        (NAME(MNAP.MFQT.VSMR1V.CAIALT.IDX))   
DEFINE PATH -                                 
      (NAME(MNAP.MFQT.VSMR1V.CAIALT.PATH) -   
       PATHENTRY(MNAP.MFQT.VSMR1V.CAIALT))   
BLDINDEX -                                   
      INDATASET(MNAP.MFQT.VSM10V.DOTMST) -   
       OUTDATASET(MNAP.MFQT.VSMR1V.CAIALT)   
DEFINE ALTERNATEINDEX -                       
       (NAME(MNAP.MFQT.VSM10V.DOTMST.ALT1) -     
        RELATE(MNAP.MFQT.VSM10V.DOTMST) -       
        KEYS(7 526) -                           
        RECORDS(75000 7500) -                   
        SHR(2 3) -                               
        RECSZ(24 120012) -                       
        FREESPACE(20 20) -                       
        NONUNIQUEKEY -                           
        NOREUSE  -                               
        UPGRADE) -                               
       DATA -                                   
        (NAME(MNAP.MFQT.VSM10V.DOTMST.ALT1DATA) -
        CISZ(4096)) -                           
       INDEX -                                   
        (NAME(MNAP.MFQT.VSM10V.DOTMST.ALT1IDX)) 
DEFINE PATH -                                   
      (NAME(MNAP.MFQT.VSM10V.DOTMST.ALT1PATH) - 
       PATHENTRY(MNAP.MFQT.VSM10V.DOTMST.ALT1)) 
BLDINDEX -                                       
      INDATASET(MNAP.MFQT.VSM10V.DOTMST) -       
       OUTDATASET(MNAP.MFQT.VSM10V.DOTMST.ALT1)


when i'm trying to write MNAP.MFQT.VSM10V.DOTMST file using the CICS program i'm getting Illogic error ... the cics statement i'm using is
Code:
EXEC CICS WRITE               
     DATASET ('MFQTF10')     
     FROM (MASTER-VSAM-RECORD)
     RIDFLD (RECORD-ID)       
     LENGTH (600)             
END-EXEC

where MFQTF10 - MNAP.MFQT.VSM10V.DOTMST file .....
Please see if i need to do anything else in this regard.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 01, 2008 12:38 pm
Reply with quote

Your idcams step did not succeed...
You repro with REUSE, but the cluster definition does not have it

You cannot use the REUSE token when dealing with alternate indexes

Your vsam is empty, not even initalized with a dummy record,
hence the illogic error in cics
Back to top
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Mon Dec 01, 2008 12:55 pm
Reply with quote

hi enrico,

Quote:
Your idcams step did not succeed...
You repro with REUSE, but the cluster definition does not have it

when i executed this ... it ran successfully.... do i need to put reuse in base?

Quote:
You cannot use the REUSE token when dealing with alternate indexes

Now in my jcl what should i do?... what would be the considerations for Base & alternate index?

Quote:
Your vsam is empty, not even initalized with a dummy record,
the file i'm using in the repro(.illogic file) is present ... i didn't get your above sentence .. which file are you mentioning?

please clarify?
Back to top
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Mon Dec 01, 2008 12:58 pm
Reply with quote

hi,

sorry for another post .... the file (FILE10 in the repro step is present .... i didnt copy it here .)

Thanks,
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 01, 2008 1:29 pm
Reply with quote

my bad,
I just run a test, a repro with REUSE works with an empty cluster,
still it' a a bad standard to use it when not needed
- I am on a minimalist side
many others would have done the same remark

illogic from a file request means that the definition or the current status of the dataset do not agree with the operation being requested,

check the file and all the related definitions
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Dec 01, 2008 5:56 pm
Reply with quote

You need to show EIBRCODE to get more information about the VSAM error that the ILLOGIC refers to.
Back to top
View user's profile Send private message
rakesha.hg

Active User


Joined: 21 Mar 2008
Posts: 161
Location: bangalore

PostPosted: Tue Dec 02, 2008 7:02 pm
Reply with quote

hi all,

The problem was due to the alternate index ... which were spaces & low-values in my file ... i used the production file & built alternate indexes ... its working now.

Thanks robert for the Eibrcode suggestion ... i looked into both EIBRESP & EIBRESP2 fields .... resp2 fields clearly gives more detail about the error .. from which i realised it was problem with AIX.

Thanks all.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 02, 2008 7:10 pm
Reply with quote

Glad to hear you got it fixed.
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 -> JCL & VSAM

 


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 Using API Gateway from CICS program CICS 0
Search our Forums:

Back to Top