Problem:
MFA can be configured to automatically drag any copylib members for COBOL programs and samples are provided. Do you have any examples of how to do this for AMB program syntax?
Resolution:
These samples are specific to APSPROG members and should not negitively impact the way COBOL members are parsed because COBOL would not have any APS keywords.
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]*)
#MFDS
#EnterpriseDeveloper