IF does not support string comparisons. What you can do is add a step that generates a return code based on the symbol value and use that return code in an IF statement.
On Mon, 14 May 2018 08:48:29 +0000 Gadi Ben-Avi <[email protected]> wrote: :>Is it possible to use system symbols in a JCL IF statement? :>So, for example, if I have a smbold called DR whos value is DR, I would like to write: :>// IF &DR=DR THEN :> Do stuff for a DR system :>// ELSE :> Do stuf for the production system :>// ENDIF :>I am running z/OS v2.1 -- Binyamin Dissen <[email protected]> http://www.dissensoftware.com Director, Dissen Software, Bar & Grill - Israel Should you use the mailblocks package and expect a response from me, you should preauthorize the dissensoftware.com domain. I very rarely bother responding to challenge/response systems, especially those from irresponsible companies. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
