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
 

 

problem in calling rexx codefrom DTL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
sreekanth.sama

New User


Joined: 05 Sep 2007
Posts: 6
Location: bangalore

PostPosted: Wed Oct 31, 2007 12:31 pm    Post subject: problem in calling rexx codefrom DTL
Reply with quote

need help in calling rexx code from DTL
Hello guys.. I am creating a panel using DTL.. In my panel I am calling rexx code using *REXX(*) keyword. But when i execute my code it is displaying like below.

**************************************************
* ISPP156
*
* Panel 'TEST' error
* Unrecognized keyword.
*
*
*
*
*
*
* Panel line where error was detected:
* *REXX(*,TIME5)


Can anybody help in resolving this problem.. It looks like the DTL is not recognizing the
*REXX as a keyword. But in my material it is showing as a keyword, so that i can call rexx code from DTL.

Thanks,
Sreeks...
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Wed Oct 31, 2007 12:53 pm    Post subject: Reply to: problem in calling rexx codefrom DTL
Reply with quote

Quote:
DTL is not recognizing the *REXX as a keyword. But in my material it is showing as a keyword

don' t You have the doubt that your material is WRONG,
or maybe You misread ? ....

To be sure I just checked the DTL reference and nowhere says that REXX is a keyword

to get a grasp on how dtl is working why not start reading and understanding
the way in which ISPF itself was written..
start with simple panels as
[/quote]ISP.SISPPENU(ISP@PRIM)
Quote:

and then progress towards more complex structures

but for simpler applications is faster to use the old standard panels definitions
[/code]
Back to top
View user's profile Send private message
sreekanth.sama

New User


Joined: 05 Sep 2007
Posts: 6
Location: bangalore

PostPosted: Thu Nov 01, 2007 5:02 am    Post subject: Reply to: problem in calling rexx codefrom DTL
Reply with quote

Here are the word that had in my book:
The *REXX statement The *REXX statement is used to invoke REXX code in a panel’s )INIT, )REINIT, or )PROC section. The REXX can be coded within the panel source immediately after the *REXX statement, or the name of a member containing a REXX program can be supplied.
*REXX[([*,]value,value,...[,(member)])]

and here is the example given in the book:
.ZVARS = ’(ZCMD NWIDGETS QPRICE TCSTXTAX TOTTAX TOTCOST SCOMM)’
/* Call REXX routine VALUSER to validate the user is allowed to use */
/* this application. */
*REXX(ZPANELID,ZUSER,(VALUSER))
/* If the user is not allowed, display a message and protect the */ /* input fields. */
IF (.MSG ¬= &Z) .ATTRCHAR(#) = ’TYPE(LI)’
)PROC
/* Call REXX routine VALUSER to validate the user is allowed to use */
/* this application. */
*REXX(ZPANELID,ZUSER,(VALUSER))
/* If the user is not allowed, display a message and protect the */ /* input fields. */ IF (.MSG ¬= &Z) .ATTRCHAR(#) = ’TYPE(LI)’ EXIT
&CPOS = ’--------’
&HPRICE = ’ ’
&LPRICE = ’ ’
/* Invoke panel REXX to validate input and calculate quote values. */ *REXX(*,CPOS,LPRICE,HPRICE)
Trace O
upper zcmd

I am getting all these things in :
Interactive System Productivity Facility (ISPF)
Dialog Developer’s Guide and Reference
z/OS Version 1 Release 9.0 SC34.

This is published by IBM.
SO i dont think this is wrong. May be i am not understanding it properly. But I tried the same in my code also, wht ever is given in the book. But still it is not accepting the *REXX as a key word. So can anybody help me in this.

Thanks,
Sreek.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Thu Nov 01, 2007 5:37 am    Post subject: Reply to: problem in calling rexx codefrom DTL
Reply with quote

I was searching with the info You quoted in the first post ...

Quote:
I am creating a panel using DTL


there is nothing about rexx in the DTL manual

I agree with You that *rexx is described in the other manual...

What Ispf message do You get ?

I know that it could be a useless question.. but what level of ISPF You are at?

*rexx came up from z/os 1.6
Back to top
View user's profile Send private message
sreekanth.sama

New User


Joined: 05 Sep 2007
Posts: 6
Location: bangalore

PostPosted: Thu Nov 01, 2007 7:00 am    Post subject: Reply to: problem in calling rexx codefrom DTL
Reply with quote

HI Enrico,
Thk u very much for ur reply. Now i realized y it was not acceping the key word. I am using Z/OS 1.02 . As per ur reply it is effective only from 1.6.
So i cant use this.
Can u please tell me is there any other alternative that i can use my REXX or CLIST code as part of )PROC section in the panel design.

Thanks
Sreeks.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1232
Location: Israel

PostPosted: Thu Nov 01, 2007 4:00 pm    Post subject:
Reply with quote

As far as I know, DTL does not use the tags )INIT, )PROC and so on.
The error message you received said:
Quote:
**************************************************
* ISPP156
*
* Panel 'TEST' error
* Unrecognized keyword.
*
*
*
*
*
*
* Panel line where error was detected:
* *REXX(*,TIME5)

The book and the examples you gave say you should have coded:
Code:
*REXX(*,(TIME5))

In your case, TIME5 was certainly interpreted as one of the fields, hence the "Unrecognized keyword"
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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