by stefkrastev » Fri Apr 16, 2010 1:49 pm
Hello Dick,
I've tested batch compress with disp=old for a library where a member was editing by IBMUSER and it doesn't work,
waiting the data set to be available:
//CONDENS JOB (9999),
// CLASS=B,
// REGION=0K,TIME=1440,
// MSGCLASS=X,MSGLEVEL=(1,1)
//S15 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSUT3 DD UNIT=SYSDA,SPACE=(CYL,(4,2))
//SYSUT4 DD UNIT=SYSDA,SPACE=(CYL,(4,2))
//PDS DD DISP=OLD,DSN=BCA1MGP.STEF.JCL1
//SYSIN DD *
C INDD=PDS,OUTDD=PDS
09.10.21 JOB00195 $HASP373 CONDENS STARTED - INIT 1 - CLASS B - SYS BC2A
09.10.21 JOB00195 IEF861I FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO CONDENS
09.10.21 JOB00195 IEF863I DSN = BCA1MGP.STEF.JCL1 CONDENS
09.10.21 JOB00195 *IEF099I JOB CONDENS WAITING FOR DATA SETS
Then I asked who was using the library:
/D GRS,RES=(*,BCA1MGP.STEF.JCL1)
BC2A IBMUSER 0058 008FFBF8 SHARE OWN
BC2A CONDENS 0025 008F17E0 EXCLUSIVE WAIT
I canceled IBMUSER (/c u=IBMUSER) and job CONDENS finished OK:
---------------------------
IEB152I RESBIO28 COMPRESSED - WAS ALREADY IN PLACE AND NOT MOVED
IEB152I DELBIO5 COMPRESSED - WAS ALREADY IN PLACE AND NOT MOVED
IEB1097I FOLLOWING MEMBER(S) MOVED IN DATA SET REFERENCED BY PDS
IEB154I ADDSLTAP HAS BEEN SUCCESSFULLY MOVED
IEB154I ADSLTAP2 HAS BEEN SUCCESSFULLY MOVED
IEB154I BACKFAST HAS BEEN SUCCESSFULLY MOVED
------------------------
IEB1098I 104 OF 120 MEMBERS MOVED IN DATA SET REFERENCED BY PDS
IEB144I THERE ARE 157 UNUSED TRACKS IN OUTPUT DATA SET REFERENCED BY PDS
IEB149I THERE ARE 0 UNUSED DIRECTORY BLOCKS IN OUTPUT DIRECTORY
IEB147I END OF JOB - 0 WAS HIGHEST SEVERITY CODE
During the compress batch is not possible any task to have access for editting/processing this PDS (the library)
I think this clear the case!
Stefan