newsgroups-index (beta)

Current group: bit.listserv.tsorexx

Re: INTERPRET

Re: INTERPRET  
Hamilton, Robert L
From:Hamilton, Robert L
Subject:Re: INTERPRET
Date:18 Jan 2005 04:44:28 -0800
I'll TRACE the pgm and send along... I've run into this same deal
before; INTERPRET just does not like literals concatenated to variables.
Although, I recall it works on MAINFRAME rexx. When I get to the office
I'll respond to everyone who has helped.

Thnks

Bob Hamilton
UTD-FA



-----Original Message-----
From: Gardiner, Roy [mailto:roy.gardiner@rbs.co.uk]
Sent: Tuesday, January 18, 2005 6:39 AM
To: Hamilton, Robert L
Subject: RE: INTERPRET

Bob,

Direct to you so's not to clutter the listserver.

I know nothing of object rexx, so may not be able to help. Does my code
snippet work for you stand-alone? If not, then there are environment
differences. The SAY output should be:

>first<>second<
>third<>fourth<


> -----Original Message-----
> From: Hamilton, Robert L [SMTP:roberth@UTDALLAS.EDU]
> Sent: Tuesday, January 18, 2005 12:28 PM
> To: TSO-REXX@VM.MARIST.EDU
> Subject: Re: INTERPRET
>
> *** WARNING : This message originates from the Internet ***
>
> This is in OBJREXX and record is a row of an array.
>
> When I try to use INTERPRET 'PARSE VAR record 'pattern.yr
> Nothing happens. I'm still working on it.
>
> Thanks
>
> bobh
>
> -----Original Message-----
> From: TSO REXX Discussion List [mailto:TSO-REXX@VM.MARIST.EDU] On
Behalf
> Of Gardiner, Roy
> Sent: Tuesday, January 18, 2005 5:46 AM
> To: TSO-REXX@VM.MARIST.EDU
> Subject: INTERPRET
>
> > From: Hamilton, Robert L [SMTP:roberth@UTDALLAS.EDU]
> >
> > Thanks,
> > I got this to work
> >
> > Parse_Command = 'PARSE VAR record 'pattern.yr;
> > INTERPRET Parse_Command;
> >
> > But I still don't see why I need the extra step.
> >
> You don't, or I am misunderstanding something. Does the variable
> RECORD contain a variable name, for instance?
>
> This code snippet:
>
> record = "first(second"
> pattern.yr = "one '(' two"
>
> Parse_Command = 'PARSE VAR record' pattern.yr;
> INTERPRET Parse_Command;
> say ">"one"<>"two"<"
>
> one = ""; two = ""
> record = "third(fourth"
>
> interpret 'PARSE VAR record' pattern.yr
> say ">"one"<>"two"<"
>
> does it either way.
>
>


The Royal Bank of Scotland plc, Registered in Scotland No. 90312.
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB

The Royal Bank of Scotland plc is authorised and regulated by the
Financial Services Authority and represents The Royal Bank of Scotland
Marketing Group. The Bank sells life policies, collective investment
schemes and pension products and advises only on the Marketing Group's
range of these products and on a With-Profit Bond produced by Norwich
Union Life (RBS) Limited.

This e-mail message is confidential and for use by the addressee only.
If the message is received by anyone other than the addressee, please
return the message to the sender by replying to it and then delete the
message from your computer. Internet e-mails are not necessarily secure.
The Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the transmission of
viruses, it is the responsibility of the recipient to ensure that the
onward transmission, opening or use of this message and any attachments
will not adversely affect its systems or data. No responsibility is
accepted by The Royal Bank of Scotland plc in this regard and the
recipient should carry out such virus and other checks as it considers
appropriate.

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LISTSERV@VM.MARIST.EDU with the message: INFO TSO-REXX
   

Copyright © 2006 newsgroups-index   -   All rights reserved   -   Impressum