IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PLI %IF statements


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2624
Location: Silicon Valley

PostPosted: Tue Sep 19, 2017 12:06 am
Reply with quote

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?
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2624
Location: Silicon Valley

PostPosted: Tue Sep 19, 2017 12:10 am
Reply with quote

nevermind. it seems to work
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Dynamically build unload and load sta... DB2 14
No new posts Dynamically build sort control statem... SYNCSORT 18
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts Embeding DB2 sql statements in scirpt... DB2 7
Search our Forums:


Back to Top