Skip to content

REXX Function Packages

Adrian Sutherland edited this page Nov 11, 2020 · 1 revision

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.

Clone this wiki locally