Silverfrost Forums

Welcome to our forums

Concatenating two characters

20 May 2008 2:36 #3223

Hi,

I am trying to concatenate two characters.

CHARACTER*80 IDENTITY,getenv@

IDENTITIY=getenv@('Test')//'\\Tmp\\File.txt'

When i try to print it , it is showing only the path for the environmental variable. It is not appending \\Tmp\\File.txt

Any help will be appreciated.

Thanks, Ajith.

21 May 2008 2:16 #3231

Why not try :

IDENTITIY = trim (getenv@('Test')) // '\\\\Tmp\\\\File.txt' 

Certainly, IDENTITIY should be more than 80 chatacters.

John

21 May 2008 8:16 #3234

Hi All,

Thanks for the help. I have modified the code in the following way and it is working now.

CHARACTER80 getenv@ CHARACTER100 IDENTITY

IDENTITY=trim(getenv@('Test'))//'\\Tmp\\File.txt'

Cheers, Ajith

Please login to reply.