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

string concatination in rexx || sigh not working


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Fri Jul 08, 2011 5:37 pm
Reply with quote

Hi ,

I used || sign for concatination string , but it is throwing error
"Invalid character in program"

I tried following code

A = 'ABC' ¦¦ 'XYZ'
SAY A
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jul 08, 2011 5:38 pm
Reply with quote

I've worked at sites where the concat char was !
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 08, 2011 5:40 pm
Reply with quote

Try ||
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Fri Jul 08, 2011 5:43 pm
Reply with quote

! is not working
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 08, 2011 5:44 pm
Reply with quote

Try ||
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Fri Jul 08, 2011 5:46 pm
Reply with quote

|| is working , This is pipe sign or what
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 08, 2011 5:49 pm
Reply with quote

Probably, the only pipe i know is the one im smoking. icon_rolleyes.gif
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Jul 08, 2011 5:52 pm
Reply with quote

Logical "or".
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Fri Jul 08, 2011 5:53 pm
Reply with quote

in mainframe screen it is appearing as ¦¦ (shft + ¦)... but in text pad it is appearing as | , strange... but it worked..

Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 08, 2011 7:41 pm
Reply with quote

Hello,

Quote:
but in text pad it is appearing as | , strange...
Not strange. Just different hex values on different systems. You need to make sure you compare mainframe values with other mainframe values, not pc values.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top