Entering the Environment

When you switch from the native environment to the S/36E, the input you type into the command line shifts to all uppercase letters, since command entry on the S/36 is in uppercase. When you return to the native environment, input appears in lowercase. You can enter the S/36E in three ways.

The STRS36 Command

You can use the Start System/36 (STRS36) command to enter the S/36E. This command has three parameters, all of which are optional:

  • MENU. Defaults to *SAME, but you can change it to any menu name. *SAME means that the menu you have on the screen will not be replaced by another menu when you enter the S/36E. Otherwise, the system will display the menu you request as it enters the S/36E.

  • CURLIB (Current Library). Also defaults to *SAME, which means that your jobs current library doesnt change. If you use the value *SAME and have no current library, the S/36E uses #LIBRARY as your current library. You can also enter any valid library name.

  • PRC (Procedure). Defaults to *NONE, which means that no OCL procedure will start running as you enter the S/36E. You can enter a valid procedure name, which must be located in the library specified in CURLIB.

The STRS36PRC Command

The Start S/36 Procedure (STRS36PRC) command allows you to run an OCL procedure. You can run this command from the command line or from a CL program, but never from within another S/36E procedure. If you want to run a S/36E procedure from within another procedure, use the usual // INCLUDE statement in the OCL.

If you run the STRS36PRC command from the native environment (not in the S/36E), the system enters the S/36E to run the procedure and then exits the S/36E, returning to the native environment when the procedure ends.

STRS36PRC has three parameters:

  • PRC (Procedure). Enter the name of the procedure here.

  • CURLIB (Current Library). Enter the name of the library where the S/36E is to find the procedure you want to run. You can use the default value of *SAME, which will use whatever library happens to be your current library at that time. If you dont have one, #LIBRARY is used.

  • PARM (Parameters). Enter a character string that contains all the parameters to be passed to the procedure, separated by commas. PARM is optional; if you dont enter anything, the procedure you are about to run receives no parameters.

S/36E at Sign-On

You can set up some (or all) user profiles so that, every time your users sign on, they enter the S/36E without doing anything special. This option is most convenient when the application programs you use on a daily basis are still programmed in the S/36E.

There are two ways to set up users for automatic S/36E entry:

  • Create or change user profiles with SPCENV(*S36). This parameter establishes the fact that, for that one user, the sign-on special environment is S/36E. Other users can have SPCENV(*NONE) if they need to work in the native environment.

  • Create or change user profiles with SPCENV(*SYSVAL) and make sure that system value OSPCENV has the value *S36. This method is preferred when the majority of users need to be in the S/36E. You can still keep some users in the native environment by specifying SPCENV(*NONE) in their user profiles.

From then on, all affected users will enter the S/36E automatically upon sign-on.

IBM i5/iSeries Primer(c) Concepts and Techniques for Programmers, Administrators, and Sys[... ]ators
IBM i5/iSeries Primer(c) Concepts and Techniques for Programmers, Administrators, and Sys[... ]ators
Year: 2004
Pages: 245

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net