GETENV does not work anymore in CA Automation Point

book

Article ID: 38273

calendar_today

Updated On:

Products

CA Automation Point

Issue/Introduction

Issue :

I'm currently busy with the upgrade of our CA Automation Point to version 1.5 and on a new server (Windows server) 

In one of my rexx program, I have the following command :

COMPUTERNAME=GETENV("COMPUTERNAME") 

I now get this error on this line.

10 *-* COMPUTERNAME=GETENV("COMPUTERNAME")
Error 43 running C:\ProgramData\CA\CA Automation Point\Site\MyFiles\Rexx\test.
REX line 10: Routine not found
Error 43.1: Could not find routine "GETENV" 

The purpose is to get the value of the windows environment variable "COMPUTERNAME". 

Environment :

Windows Server : 2008/2012
CA Automation Point 11.5

Cause :

The GETENV isn't supported in OO-Rexx. Need to use the VALUE function.

Resolution :

Change the statement :

COMPUTERNAME=GETENV("COMPUTERNAME") 

in

Env = 'ENVIRONMENT'
ComputerName = Value('COMPUTERNAME',,Env)

Environment

Release: AP327020100-11.5-Automation Point-3270/5250 Interface Option
Component: