Step 1. Create a LANSA for iSeries Object
FRM125 - Check Out / In to IBM i
In this step, you will logon to LANSA for iSeries using any partition, where you will create a new system variable that you will amend using Visual LANSA. A System Variable may be created using LANSA for iSeries, in either an RDML or RDMLX enabled partition
1. Logon to LANSA for iSeries using your IBM i developer profile and task ID.
2. From the NOT partition dependent. It is a system-level list; that is, it will be the same in each partition.
, select the option to . The list displayed is3. Press
to create a new system variable as follows:
System Variable Name: |
*AUTOALP09iiiNUM where iii=your initials |
Description: |
Next Available Number |
Method of Derivation: |
DYNAMIC |
Data Type: |
ALPHA |
Length: |
7 |
Program Name: |
M@SYSNUM |
Program Type: |
3GL |
Use the online help text search facilities (extended help) and review *AUTOALPnnxxxxxxxxx system variable. This is a special 'data area' system variable layout which is used in conjunction with a LANSA shipped evaluation program M@SYSNUM. The system variable retrieves a number nn (in this case it should be 9 but you have entered 7 - it will be changed to 9 using Visual LANSA) long from data area xxxxxxxxxx, increments it, updates the data area and returns it as an alphanumeric value.
. Scroll to the end of the help to review the information on the4. Press
to save the system variable definition.5. Press
to exit the Add System Variable Definition panel.Note: The data area and the value of the system variable will automatically be defined when the system variable is first accessed.
6. Exit the LANSA for iSeries System.