Read environment variables at runtime with %GETENV:
%GETENV
DCL-S home VARCHAR(200); DCL-S dbUrl VARCHAR(300); home = %GETENV('HOME'); DSPLY 'Home directory: ' + home; dbUrl = %GETENV('DATABASE_URL'); IF dbUrl = ''; DSPLY 'No database configured'; ENDIF;
%GETENV returns an empty string if the variable is not set.
There was an error while loading. Please reload this page.