Hello Milan,
that's not a correct PL/1 Syntax, you produced. The apostrophe in front of "TSMOS.COMPILER..." terminates the string. So the compiler uses TSMOS.COMPILER.MILTEST as a reference to a variable.
Use TITLE (' << string with all the options - one of them is DSN(dsname) - others are NEW, CATALOG, and so on --->')
OPEN FILE (OUT) TITLE
( 'DSN(TSMOS.CIMPILER.MILTEST),NEW,CATALOG,TRACKS,SPACE(50,1)' );
should work.
In my example CURRENT_DSN is a variable (CHAR (48) VAR) variable which is filled before the OPEN.
I attached a stripped version of my log-writer to illustrate how we use it (DSN is bulit with a fix suffix and some timestamp-related parts).
Note: in the installation where I'm currently working "!!" (two exclamation marks) are used for concatenation (not the common "||"s). Probably you've to change my sample-code on your system.
Regards,
Tom
TomStadler