Reg PreProcessor

Hi everybody,

Can anyone help me out of this, i tried running the following code which throws me with an error...

&SCOPED-DEFINE path C:\saravanakumarb
&SCOPED-DEFINE absolute-path "{&path}" + "\" + inputfile.p

DISPLAY "{&absolute-path}".


Error :
** Unknown Field or Variable name - C. (201)
** Could not understand line 4. (196)
 
Hi,

In the above pgm , i do concatenate the path with the file name to create the absolute path...
I don understand the error and can anyone explain me...
I have used "+" as concatenation operator...
 
double quote is start/stop for preprocessor definition.

Try:

Code:
&SCOPED-DEFINE path 'C:\saravanakumarb'
&SCOPED-DEFINE absolute-path "{&path} + '\' + 'inputfile.p'"
DISPLAY "{&absolute-path}".
OR
Code:
&SCOPED-DEFINE path C:\saravanakumarb
&SCOPED-DEFINE absolute-path "'{&path}' + '\' + 'inputfile.p'"
DISPLAY "{&absolute-path}".

Casper.
 
Back
Top