Problem:
How do you create a regular expression to automatically download the include members for an APSPROG member?
Example:
I could code for an APS Macro copylib;
%INCLUDE COPYLIB(copy0011)
Resolution:
%INCLUDE COPYLIB;
This is for all includes.
[0-9\\t ]*\\COPYLIB[\\t '("]*([A-Z0-9]*)
COPY;
This is for all copy commands.
[0-9\\t ]*\\COPY[\\t '("]*([A-Z0-9]*)
%INCLUDEs not on the same line;
This is for includes on the same line as the WS01.
^[0-9\\t ]*\\%INCLUDE COPYLIB[\\t '("]*([A-Z0-9]*)
%INCLUDEs on the same line;
This is for includes on the line after the WS01.
^[0-9A-Z\\t .]*\\%INCLUDE COPYLIB[\\t '("]*([A-Z0-9]*)
APSDATA DS
This is for APSDATA members with DS in column 4
^[A-Z\\t .]*\\DS [\\t '("]*([A-Z0-9]*)
APSDATA DS##
This is for APSDATA members with DS## in column 4
^[A-Z\\t .]*\\DS[0-9][0-9][\\t '("]*([A-Z0-9]*)
APSSTUB
This is for APSSTUB members with STUB in column 4
^[A-Z\\t .]*STUB[\\t '("]*([A-Z0-9]*)
#EnterpriseDeveloper
#MFDS