newsgroups-index (beta)

Current group: bit.listserv.tsorexx

Re: Antwort: Re: [TsoRexx] Calling function with variable name [Virus checked]

Re: Antwort: Re: [TsoRexx] Calling function with variable name [Virus checked]  
Hamilton, Robert L
From:Hamilton, Robert L
Subject:Re: Antwort: Re: [TsoRexx] Calling function with variable name [Virus checked]
Date:17 Jan 2005 12:48:32 -0800
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.

bobh

-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-REXX@VM.MARIST.EDU] On Behalf
Of Anthony Borla
Sent: Monday, January 17, 2005 8:10 AM
To: TSO-REXX@VM.MARIST.EDU
Subject: Re: Antwort: Re: [TsoRexx] Calling function with variable name
[Virus checked]

----- Original Message -----
From: "Bob Hamilton"
To:
Sent: Tuesday, January 18, 2005 12:32 AM
Subject: Re: [TSO-REXX] Antwort: Re: [TsoRexx] Calling function with
variable name [Virus checked]



I'm trying to get something like this to work:

interpret 'PARSE VAR record ' value(pattern.yr)

to use a logically determined pattern

bobh



Is this the sort of thing you mean ?

record = '14 67 89 64 78 90'

do i = 2000 to 2005
pattern.yr = VALUE('Y'i)
interpret 'parse var record' VALUE(pattern.yr) 'record'
say pattern.yr '=' VALUE(pattern.yr)
end

I hope this helps.

Anthony Borla

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

----------------------------------------------------------------------
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