Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Illogic error while writing a VSAM file thru CICS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Illogic error while writing a VSAM file thru CICS
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Dec 01, 2008 12:38 pm    Post subject: Reply to: Illogic error
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    Post subject: Reply to: Illogic error while writing a VSAM file thru CICS
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    Post subject: Reply to: Illogic error while writing a VSAM file thru CICS
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Dec 01, 2008 1:29 pm    Post subject: Reply to: Illogic error while writing a VSAM file thru CICS
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Mon Dec 01, 2008 5:56 pm    Post subject:
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    Post subject: Reply to: Illogic error while writing a VSAM file thru CICS
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Tue Dec 02, 2008 7:10 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us