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

Need help on If condition continuation in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Fri May 19, 2017 8:55 am
Reply with quote

Hi,

I have IF statement which works fine in one line

IF WS-SPRM-COPE = 'a', 'b', 'b', 'd'

But adding another line fails. Can you suggest how to make multiple lines

IF WS-SPRM-COPE = 'a', 'b', 'b', 'd',
'e', 'f', 'g', 'h'
Back to top
View user's profile Send private message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Fri May 19, 2017 8:57 am
Reply with quote

sorry the failue happnes when adding more than 1 line

IF WS-SPRM-COPE = 'a', 'b', 'b', 'd',
'e', 'f', 'g', 'h',
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Moderator


Joined: 14 Mar 2007
Posts: 10727
Location: italy

PostPosted: Fri May 19, 2017 10:46 am
Reply with quote

Quote:
I have IF statement which works fine in one line

hard to believe
the statement - as written- might be accepted in some language,
certainly NOT in Rexx
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A370/3.7?SHELF=IKJ4BK90&DT=20060626210253

(*) WS-SPRM-COPE is not even a valid REXX identifier

the topic was probably posted in the wrong section of the forum
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri May 19, 2017 5:12 pm
Reply with quote

A person of 10 years standing in the forum should know by now:
    to post in the correct part of the forum - if it is indeed a COBOL question
    to use the code tags
    to show the error message(s) received


Locked
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Moderator


Joined: 14 Mar 2007
Posts: 10727
Location: italy

PostPosted: Fri May 19, 2017 5:32 pm
Reply with quote

Nic ,
what would You expect from somebody who has as
Quote:
Mainframe Skills: reading books

icon_wink.gif

sometimes I think that people like this deserve an official warning
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts How to replace a string dynamically i... CLIST & REXX 16
No new posts Determine Library REXX exec was execu... CLIST & REXX 7
No new posts Any examples of calling FTP from REXX? CLIST & REXX 1
No new posts REMOVE DUPLICATE RECORDS BASED ON A S... DFSORT/ICETOOL 4
No new posts SummeRx: a new framework for REXX z/OS CLIST & REXX 6
Search our Forums:

Back to Top