× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi All,

In the CL code, condition 'S' is working fine in all the environments. In
one of the server the condition is failing.

If the parameter passing between both the programs are mismatch, then it
should fail in the machines. Help needed why is it so?

Compiler will work funny sometimes? :)

* For setting the Env Variables
D wwEnvVar S 50A
D wwEnvVarVal S 256A
D wwMode S 1A
D version S 15A

// Set Environment Variable for QIBM_RPG_JAVA_PROPERTIES
if Errflg = *off;
wwEnvVar = 'QIBM_RPG_JAVA_PROPERTIES' ;
wwEnvVarVal = '-Djava.version='+%trim(AL(054))+';';
wwMode = 'S';
UtlEnvVar(wwEnvVar:wwEnvVarVal:wwMode);
endIf;

UtlEnvVar
PGM PARM(&EnvVar &Value &mode)

DCL &EnvVar *CHAR 50
DCL &Value *CHAR 256
DCL &mode *CHAR 3

IF (&mode = 'S') DO
ADDENVVAR ENVVAR(&EnvVar) +
VALUE(&Value) +
REPLACE(*YES)
ENDDO

IF (&mode = 'R') DO
RMVENVVAR ENVVAR(&EnvVar)
/* ENVVAR not defined... Ignore */
MONMSG CPFA981
ENDDO
ENDPGM


Regards
Balasubrmanian PS
-------------------------------------------------------------------------------------------------------------------
Dream!!! is not what you see in sleep.... is the thing which does not let
you sleep

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.