LANSA Home page
  Tech Exchange Beta
TECH EXCHANGE BETA

LANSA HOME
Help Desk
HELP DESK

   
 
Navigation Bar Navigation Bar
 
Spacer Spacer
 

New System Variable *VISUAL_LANSA

Date: 20 February 2002
Product/Release: Visual LANSA / LANSA for iSeries
Abstract: A new system variable called *VISUAL_LANSA has been introduced to distinguish between program execution on LANSA for iSeries and Visual LANSA.
Submitted By: LANSA Technical Support

Detailed description

It has been a common programming practice to use the *CPUTYPE system variable to distinguish between traditional LANSA on the iSeries and Visual LANSA. This is usually via RDML code or conditions that check that *CPUTYPE is not equal to AS400 eg *CPUTYPE *NE AS400' 

To allow better distinction between traditional LANSA & Visual LANSA RDML, a new system variable was introduced in 9.1. The new variable is an alpha(1) called *VISUAL_LANSA. It always evaluates to N when the function is running on LANSA for iSeries, and Y when running on any of the VL platforms.

Note: Eventually (possibly even for 10.0), some of the options / commands that are currently invalid in Visual LANSA may become supported just for VL for iSeries. In this case, *CPUTYPE *EQ AS400 could be used to distinguish code. 

 
 
 

© 2010 LANSA.

  All rights reserved.

  Bullet Contact Us Bullet Site Map Bullet Legal Notices