Panvalet error PV051

Document ID : KB000115937
Last Modified Date : 28/09/2018
Show Technical Document Details
Issue:
When trying to execute program PAN # 2 getting below error Error : PV051 : Invalid or unavailable file DSN
Environment:
Panvalet 14.6
Cause:
The DISP for the PANDD2 DSN has the type of DISP=OLD. 
The requirement for the PANDD2 is DISP=NEW 
Resolution:
Need $2SF007 to REMOVE THE PAN#2 REQUIREMENT THAT PANDD2 BE DISP=NEW
This fix is located in the CBA3SAMP library member SPECLMVS.
Search for $2SF007 and warp your SMP/e statements around this fix.
See example below:
//STEP1    EXEC PGM=GIMSMP,PARM='DATE=U',REGION=0M
//SMPCSI    DD DISP=SHR,DSN=LIBSYS.PANV.V14R6.LVL1.CSI
//******************************************************************
//*
//SMPPTFIN DD *
++USERMOD($2SF007) REWORK(2015272).
++VER(Z038)  FMID(CBA3E60).
++ZAP(I2SF000).
  NAME $2SF000
  IDRDATA $2SF007
  VER     000076 5BF2,E2C6,F0F0,F740,D540
  REP     000076 5BF2,E2C6,F0F0,F740,E840
/*
//SMPCNTL   DD *
  SET BDY(GLOBAL) .
  RECEIVE SELECT($2SF007) SYSMODS .
  SET BDY(CAIT0) .
  APPLY   SELECT($2SF007).
/*
//