Hi Guys,
I extracted a part of the Macro Parameter and I wanted to Declare data type with that Extracted Parameter. For the First time it works fine. When I Invoke the Macro again with different "Macro Parameter(Name)" , I used to get the following error.

Actually "Prasad" should be replaced with the Extracted Parameter Substring.
But when I see the Listing File, the Same TextEqu(Prasad), is itself defining in the Data Type Place.


Assembling file: Data.ASM
**Error** Data.ASM(10) CHARACTER(39) Illegal forward reference
**Error** Data.ASM(10) CHARACTER(39) Undefined symbol: ??
Error messages: 2
Warning messages: None
Passes: 1
Remaining memory: 423k

The Macro is:

MACRO Character Param1,Param2:VarArg
Char_Position instr <Param1>,TestChar1
Prasad SubStr <Param1>,1,Char_Position-1
......
.....

Prasad DB Final_Param_Character
......
.....


In the Main Program,
The Invocation of the Macro is:
Character String1[10][20]


Here is a fraction of Listing File

1 260 *000 01*(00) Prasad DB Final_Param_Character
**Error** Data.ASM(10) CHARACTER(39) Illegal forward reference
**Error** Data.ASM(10) CHARACTER(39) Undefined symbol: ??

Suggestions and Corrections will be Appreciated
Thanks in Advance
regards,
Prasad
Posted on 2003-07-13 22:02:35 by prasad_86