REXX Function Packages - adesutherland/CMS-370-BREXX GitHub Wiki

BREXX has a feature to load functions from a library. This has been [re-]enabled in BREXX/CMS and should exist in other platforms "out of the box"

Usage Example

/* TEST EXEC */            
CALL LOAD PACK   
                 
CALL PACK        
CALL FUNC1       
CALL X2D         

Library

/* PACK EXEC */               
SAY 'PACK CALLED'   
RETURN              
                    
FUNC1: PROCEDURE    
SAY 'FUNC1 CALLED'  
RETURN              
                    
X2D: PROCEDURE      
SAY 'X2D CALLED'    

Note how X2D is overloaded - this is a way for implementing built in library fixes for BREXX in REXX.

Suggestion: Make BREXX automatically load RXUSRLB EXEC (or other name(s)) on startup.