Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Invalid command name D2C

9 views
Skip to first unread message

Joseph Reichman

unread,
Apr 12, 2021, 7:56:32 AM4/12/21
to
Hi
I’m using rexx for an ISPF dialog session after I display a panel I do a VGET in the rexx I try to format the ISPF variables and do a D2C enclosing the variable in parens

And get invalid command name I preface the D2C with ADDRESS TSO and still the same

Don’t get it

Thanks

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

Willy Jensen

unread,
Apr 12, 2021, 8:39:25 AM4/12/21
to
D2C is a rexx function and must be used like so: cc=D2C(value)
The value must be a number.
Please show us what you are doing.

-----Oprindelig meddelelse-----
Fra: TSO REXX Discussion List <TSO-...@VM.MARIST.EDU> På vegne af Joseph Reichman
Sendt: 12. april 2021 13:56
Til: TSO-...@VM.MARIST.EDU
Emne: [TSO-REXX] Invalid command name D2C
--
Denne mail er kontrolleret for vira af AVG.
http://www.avg.com

Joseph Reichman

unread,
Apr 12, 2021, 8:49:00 AM4/12/21
to
I’m trying justify and zero fill the dialog variables I guess I got used using D2C without a Return code embedded in a substr

Thanks for your help

> On Apr 12, 2021, at 8:39 AM, Willy Jensen <wi...@harders-jensen.com> wrote:
>
> D2C is a rexx function and must be used like so: cc=D2C(value)

WalterPachl

unread,
Apr 12, 2021, 9:59:20 AM4/12/21
to
what do you try to do?
d2c is a builtin function
on the PC:
C:\Users\Walter>rexx eval c2d('A')
c2d('A')=65

C:\Users\Walter>rexx eval d2c(65)
d2c(65)=A

Walter

Paul Gilmartin

unread,
Apr 12, 2021, 11:59:07 AM4/12/21
to
On 2021-04-12, at 06:48:51, Joseph Reichman wrote:
>
> I’m trying justify and zero fill the dialog variables I guess I got used using D2C without a Return code embedded in a substr
>
The list can better help you if you add TRACE R (even TRACE I)
a few instructions before the failure and post the log excerpt.
Redact possible confidential information.

And add JUNK = C2X( argument to d2c() ) before the D2C() so
the result is traced.

And review the TSO Ref. and Rexx Ref. to improve your
understanding of Rexx and TSO syntax.

>> On Apr 12, 2021, at 8:39 AM, Willy Jensen wrote:
>>
>> D2C is a rexx function and must be used like so: cc=D2C(value)
>> The value must be a number.
>> Please show us what you are doing.
>>
>> -----Oprindelig meddelelse-----
>> Fra: TSO REXX Discussion List <TSO-...@VM.MARIST.EDU> På vegne af Joseph Reichman
>> Sendt: 12. april 2021 13:56C
>>
>> I’m using rexx for an ISPF dialog session after I display a panel I do a VGET in the rexx I try to format the ISPF variables and do a D2C enclosing the variable in parens
>>
>> And get invalid command name I preface the D2C with ADDRESS TSO and still the same

-- gil

Binyamin Dissen

unread,
Apr 12, 2021, 12:13:49 PM4/12/21
to
This typically happens when

name =

is forgotten.

The statement

D2C(whatever)

will send the result to the current command environment.

On Mon, 12 Apr 2021 07:56:19 -0400 Joseph Reichman <reich...@GMAIL.COM>
wrote:

:>I’m using rexx for an ISPF dialog session after I display a panel I do a VGET in the rexx I try to format the ISPF variables and do a D2C enclosing the variable in parens

:>And get invalid command name I preface the D2C with ADDRESS TSO and still the same

--
Binyamin Dissen <bdi...@dissensoftware.com>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel

ITschak Mugzach

unread,
Apr 12, 2021, 12:18:09 PM4/12/21
to
It can also be part of another statement such as say. It is possible that
it is part of a command started in previous line but the op forgot the
comma at end of previous line.

ITschak

בתאריך יום ב׳, 12 באפר׳ 2021 ב-19:14 מאת Binyamin Dissen <
bdi...@dissensoftware.com>:
--
ITschak Mugzach
*|** IronSphere Platform* *|* *Information Security Continuous Monitoring
for z/OS, x/Linux & IBM I **| z/VM coming soon *

Seymour J Metz

unread,
Apr 13, 2021, 9:38:09 AM4/13/21
to
In general, it helps if you include the relevant code. In this case a trace isn't needed, but often it helps, often avoiding the need to seek other assistance.

> I try to format the ISPF variables

That would imply passing the formatted values to something else, e.g., to other variables. You're not doing that. Examples:

foo = D2c(bar)
say 'Formatted vallue' D2C(bar)
call baz D2C(bar)

> And get invalid command name I preface the D2C with ADDRESS TSO

Why? What did you expect to happen? You're evaluating a single character expression and asking that it be treated as a command.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: TSO REXX Discussion List [TSO-...@VM.MARIST.EDU] on behalf of Joseph Reichman [reich...@GMAIL.COM]
Sent: Monday, April 12, 2021 7:56 AM
To: TSO-...@VM.MARIST.EDU
Subject: [TSO-REXX] Invalid command name D2C
0 new messages