Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need help on If condition continuation in REXX

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

New User


Joined: 21 Feb 2007
Posts: 72
Location: bangalore

PostPosted: Fri May 19, 2017 8:55 am    Post subject: Need help on If condition continuation in REXX
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: bangalore

PostPosted: Fri May 19, 2017 8:57 am    Post subject: Reply to: Need help on If condition continuation in REXX
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10291
Location: italy

PostPosted: Fri May 19, 2017 10:46 am    Post subject: Reply to: Need help on If condition continuation in REXX
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
http://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: 1845
Location: UK

PostPosted: Fri May 19, 2017 5:12 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10291
Location: italy

PostPosted: Fri May 19, 2017 5:32 pm    Post subject: Reply to: Need help on If condition continuation in REXX
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.    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am
No new posts Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us