To set SMEM true, I have used the below DEFINE parameter in the compiler. If the below DEFINE parameter is not used, always SMEM is false.
//CCOMP EXEC PROC=WCCOMP,
Similarly, I have a preprocessor variable #PLIATEST in PL/1 that is given below.
%IF #PLIATEST='YES' %THEN %DO;
PUT SKIP LIST ('--------------');
I want to set the variable #PLIATEST to YES or NO thru compiler JCL. Is there a way to do that? If not charater, can we set a boolean value? Do we have any other similar way to initialize during compilation?
I hope, I made my question clear. Please let me know if you still did not understand. Many thanks.
Joined: 06 Jun 2008 Posts: 8280 Location: Dubuque, Iowa, USA
I think your first mistake is obvious: PL/I is not C. You cannot expect something that works in one language to be exactly replicated in another language -- so what you want to do may, or may not, even be possible.
Your second mistake is also obvious: you were asked what reading of the PL/I Langauge Reference and Programming Guide manuals you have done already. You ignored this question. Since these manuals are available at the IBM web site as well as through the manuals link at the top of this page, there really is no excuse for you to not have answered the question. This is a HELP forum, not a READ-THE-MANUAL-FOR-YOU forum. The type of question you asked is typically answered, very thoroughly, by IBM in their language manuals.