Re: 轉寄: Define and build alternative index path error under SMS-managed volume



Tommy,
You latest attempt created two temporary nonvsam datasets. The default DISP
is NEW,DELETE,DELETE.
We got around this issue by putting a IEFBR14 step before the IDCAMS step.
Example:
//IEFBR14 EXEC PGM=IEFBR14
//DD1 DD DSN=ZDVT.ALLOC1,DISP=(NEW,DELETE),UNIT=SYSDA,
// SPACE=(TRK,1)
//DD2 DD DSN=ZDVT.ALLOC2,DISP=(NEW,DELETE),UNIT=SYSDA,
// SPACE=(TRK,1)
/* DEFINE & BUILD ALTERNATIVE INDEX PATH */
//BUILDIDX EXEC PGM=IDCAMS,COND=(8,LE),REGION=6M
//SYSPRINT DD SYSOUT=*
//IDCUT1 DD DSN=ZDVT.MGDC001.IDCUT1,DISP=OLD,
// UNIT=SYSDA,VOL=REF=*.IEFBR14.ALLOC1,AMP='AMORG'
//IDCUT2 DD DSN=ZDVT.MGDC001.IDCUT2,DISP=OLD,
// UNIT=SYSDA,VOL=REF=*.IEFBR14.ALLOC2,AMP='AMORG'
//SYSIN DD DSN=&LBMGD..BAT.PARMLIB(DEFFILEB),DISP=SHR
// DD DSN=&LBMGD..BAT.PARMLIB(DEFTDGPA),DISP=SHR

Regards,
John

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
.



Relevant Pages

  • Re: backing up a zFS container file
    ... you use IDCAMS you may need to work at the CI level, ... File System Implementation - SG24-6580-01) that talks about other ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Easy way to convert IEFBR14 and IDCAMS deletes to HDELETE
    ... Of Ulrich Krueger ... Easy way to convert IEFBR14 and IDCAMS deletes to HDELETE ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: SMS Question - Urgent
    ... for multivolume VSAM datasets. ... I have sometimes seen the VOL parm setup in an IDCAMS as VOL. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • RE: Operator Training Scenarios
    ... Is that ONE better than an IEFBR14? ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: IEF195I
    ... IEFBR14, the dataset was cataloged to 120 volumes using IDCAMS as a work ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)