MVS Jan 2005.p65 - CBT Tape
MVS Jan 2005.p65 - CBT Tape
MVS Jan 2005.p65 - CBT Tape
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
else<br />
say right(mcount-1,4) 'members copied to' target,<br />
'RC='copymem(source target)<br />
/*********************************************************************/<br />
/* Print stats */<br />
/*********************************************************************/<br />
say<br />
say right(totcount,4) 'members copied'<br />
say right(sets,4) 'datasets created'<br />
/*********************************************************************/<br />
/* Shutdown */<br />
/*********************************************************************/<br />
shutdown: nop<br />
/*********************************************************************/<br />
/* Put unique shutdown logic before the call to stdexit */<br />
/*********** @REFRESH BEGIN STOP 2ØØ2/Ø8/Ø3 Ø8:42:33 *************/<br />
/* Shutdown message and terminate */<br />
/*********************************************************************/<br />
call stdexit time('e')<br />
/*********** @REFRESH END STOP 2ØØ2/Ø8/Ø3 Ø8:42:33 *************/<br />
/* Internal Subroutines - not refreshable */<br />
/* */<br />
/* DSALLOC - Allocate the new DSN */<br />
/* COPYMEM - Invoke IEBCOPY to copy members */<br />
/* CONT - Append line with a continuation in column 72 */<br />
/* */<br />
/*********************************************************************/<br />
/* DSALLOC - Allocate the new DSN */<br />
/*********************************************************************/<br />
dsalloc: arg olddsn num memnum parm totmem<br />
if parm = 'ALPHA' then<br />
clonetype = last<br />
else<br />
clonetype = '#'<br />
newdsn = userid()'.@'num||clonetype||memnum'.'olddsn<br />
dirblks = format(memnum/4,,Ø)<br />
pmem = memnum/totmem<br />
prispace = format(pmem*(sysused/sysblkstrk/systrkscyl),,Ø)<br />
if prispace = Ø then prispace = 1<br />
secspace = prispace * 5<br />
if sysrecfm = 'U' then<br />
do<br />
call tsotrap "ALLOC F(CLONE) DA("qdsn(newdsn)")",<br />
"LIKE("qdsn(olddsn)") DIR("dirblks")",<br />
"SPACE("prispace secspace") CYLINDERS",<br />
"BLKSIZE("sysblksize")"<br />
end<br />
else<br />
do<br />
call tsotrap "ALLOC F(CLONE) DA("qdsn(newdsn)")",<br />
54 © 2005. Xephon USA telephone (214) 340 5690, fax (214) 341 7081.