27.04.2013 Views

MVS Jan 2005.p65 - CBT Tape

MVS Jan 2005.p65 - CBT Tape

MVS Jan 2005.p65 - CBT Tape

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

push trace() time('L') module 'From:' sigl 'Parms:' sparms<br />

call modtrace 'START' sigl<br />

/*********************************************************************/<br />

/* Trap the output from the LISTA STATUS command */<br />

/*********************************************************************/<br />

call outtrap 'lines.'<br />

address TSO "LISTALC STATUS"<br />

call outtrap 'off'<br />

ddnum = Ø<br />

/*********************************************************************/<br />

/* Parse out the DDNAMEs and concatenate into a list */<br />

/*********************************************************************/<br />

ddlist = ''<br />

do ddl=1 to lines.Ø<br />

if words(lines.ddl) = 2 then<br />

do<br />

parse upper var lines.ddl ddname .<br />

ddlist = ddlist ddname<br />

ddnum = ddnum + 1<br />

end<br />

else<br />

do<br />

iterate<br />

end<br />

end<br />

/*********************************************************************/<br />

/* Return the number of DDs */<br />

/*********************************************************************/<br />

pull tracelvl . module . sigl . sparms<br />

call modtrace 'STOP' sigl<br />

interpret 'trace' tracelvl<br />

return ddnum<br />

/*********** @REFRESH END DDLIST 2ØØ2/12/15 Ø4:54:32 *************/<br />

/*********** @REFRESH BEGIN DDDSNS 2ØØ2/Ø9/11 ØØ:37:36 *************/<br />

/* DDDSNS - Returns number of DSNs in a DD and populates DDDSNS */<br />

/*-------------------------------------------------------------------*/<br />

/* TARGDD - DD to return DSNs for */<br />

/*********************************************************************/<br />

dddsns: module = 'DDDSNS'<br />

if wordpos(module,probe) Ø then trace 'r'; else trace 'n'<br />

parse arg sparms<br />

push trace() time('L') module 'From:' sigl 'Parms:' sparms<br />

call modtrace 'START' sigl<br />

arg targdd<br />

if targdd = '' then call rcexit 77 'DD missing for DDDSNS'<br />

/*********************************************************************/<br />

/* Trap the output from the LISTA STATUS command */<br />

/*********************************************************************/<br />

x = outtrap('lines.')<br />

address TSO "LISTALC STATUS"<br />

64 © 2005. Xephon USA telephone (214) 340 5690, fax (214) 341 7081.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!