Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2545 Location: Silicon Valley
|
|
|
|
I am trying to control whether a structure is based or not, through the magic of the macro processing.
In my PLI program:
Code: |
%Dcl my_based CHARACTER;
%my_based = 'BASED';
%include myincl; |
And in the include file:
Code: |
%Dcl my_ptr CHAR;
%my_ptr = ' ';
%IF (my_based = 'BASED') %Then
%Do;
%my_ptr = 'BASED(some_ptr)'
%End;
Dcl 1 settings my_ptr,
|
I can never get the %if statement to be true. How to do? |
|