I have been trying to figure out how to code CSI with more than one field.

So far between the manual and sample from IBM, I am stumped.

Has anyone modified the sample REXX IGGCSIRX from IBM to use more than one 
CSIFLDx in the function?

I want to pull the space fields for VSAM datasets.  Or are they automatically 
passed back via the CSI process? 

I think this is the section of Code I need to insert what I want

MODRSNRC = SUBSTR(' ',1,4)          /*   CLEAR MODULE/RETURN/REASON  */ 
CSIFILTK = SUBSTR(KEY,1,44)         /*   MOVE FILTER KEY INTO LIST   */ 
CSICATNM = SUBSTR(' ',1,44)         /*   CLEAR CATALOG NAME          */ 
CSIRESNM = SUBSTR(' ',1,44)         /*   CLEAR RESUME NAME           */ 
CSIDTYPS = SUBSTR(' ',1,16)         /*   CLEAR ENTRY TYPES           */ 
CSICLDI  = SUBSTR('Y',1,1)          /*   INDICATE DATA AND INDEX     */ 
CSIRESUM = SUBSTR(' ',1,1)          /*   CLEAR RESUME FLAG           */ 
CSIS1CAT = SUBSTR(' ',1,1)          /*   INDICATE SEARCH > 1 CATALOGS*/ 
CSIRESRV = SUBSTR(' ',1,1)          /*   CLEAR RESERVE CHARACTER     */ 
CSINUMEN = '0002'X                  /*   INIT NUMBER OF FIELDS       */ 
CSIFLD1  = SUBSTR('VOLSER',1,8)     /*   INIT FIELD 1 FOR VOLSERS    */ 
CSIFLD2  = SUBSTR('HARBA',1,4)      /*   INIT FIELD 2 FOR Used HARBA */


 /********************************************************************/ 
 /*                                                                  */ 
 /*  BUILD THE SELECTION CRITERIA FIELDS PART OF PARAMETER LIST      */ 
 /*                                                                  */ 
 /********************************************************************/ 
CSIOPTS  = CSICLDI  || CSIRESUM || CSIS1CAT || CSIRESRV                 
CSIFIELD = CSIFILTK || CSICATNM || CSIRESNM || CSIDTYPS || CSIOPTS      
CSIFIELD = CSIFIELD || CSINUMEN || CSIFLD1  || CSIFLD2

However, the data is not coming back the way I want.  Any suggestions?
Also, is that correct process?  Or should I be doing this differently?

Thanks

Lizette                             

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to