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

problem in calling rexx codefrom DTL


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 31, 2007 12:53 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Nov 01, 2007 5:37 am
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
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: 1353
Location: Israel

PostPosted: Thu Nov 01, 2007 4:00 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top