Manfred Lotz wrote:

>>> I've got a very old assembler program which still has a  SPLEVEL SET=2 
>>> statement at the beginning.
>>> I think that these days this is obsolete and should be removed.

You can do that AFTER you have reviewed ALL called macros to see what 
restrictions they're under. AFAIK some macros are very sensitive to their 
environment, like type of instructions used and addressing modes.

>> FWIW, we use this:
>>          SPLEVEL SET=6             Specify OS/390 R2 macro format
>>          SYSSTATE ARCHLVL=2        Program requires z/Architecture
>>          SYSSTATE OSREL=ZOSV1R9    Program requires z/OS 1.9 and higher
>Thanks for this. This looks good, and I guess I will use it for new programs.

They're also looking good for me, but like you I would also be reluctant to use 
ARCHLVL=2. If it were me, I would let ARCHLVL to be defaulted at zero but you 
will need to find out at WHAT machine type + z/OS version your code is to be 
run.

>I checked the SPLEVEL SET=6 for my source and it didn't change anything (I 
>compared the assembler listings).

It should be so at default of 6, at least for IBM's macros coming with z/OS. A 
quick scan of SYS1.MACLIB showed me a lot of SYSSTATE TEST and SPLEVEL TEST 
usage.

But some macros don't have SPLEVEL dependence for example OPEN.

I would suggest you get a cross reference of all macros and just study them one 
by one for any documentation. This is a tedious work, I know.

Good luck for your quest to produce quality code!  ;-)

Groete / Greetings
Elardus Engelbrecht

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to