JSP-MACRO is a DOS command-line tool which accepts a sequential input text stream and produces an expanded version of that text as output. The input stream may contain:
- macro calls; which are expanded by JSP-MACRO according to user-specified definitions;
- macro definitions; according to which macro calls are expanded; and
- plain text; which is copied unchanged to the output
Example macro definition
$ML &MSG &TYPID () &TXT = $/M $SEL (&TYPID NE $SYSNUL) &SYSTXTG START GROUPM &SYSCMT ' TYPID=.&TYPID. TEXT=.&TXT.' $DO ($TYP = &TYPID (1 2)) $/M1 $SEL ($MSG$TYP EQ Y) &SYSCMT ' *** ABOVE TYPID IS DUPLICATED' $/M1 $ALT (ELSE) $GDO ($MSG$TYP = Y) $/M1 $END &SYSTXTG END GROUPM DISPLAY 'MESSAGE-.$TYP. - .&TXT.' UPON CONSOLE. $/M $ALT (ELSE) DISPLAY '.&TXT.' UPON CONSOLE. $M $END $MEND
JSP-MACRO was sold in the late 1970's and early 1980's by Michael Jackson Systems Limited. It is no longer available to buy or supported. Its functionality was also incorporated in the JSP-COBOL tool.