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: 2214
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: 2214
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts filter COMMIT/ROLLBACK statements DFSORT/ICETOOL 13
No new posts Rexx to create VSAM define statements CLIST & REXX 10
No new posts Summing records conditional statements. SYNCSORT 13
No new posts Remove all Parenthetical Statements -... DB2 2
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... CLIST & REXX 1
Search our Forums:

Back to Top