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
 

 

How to write ISPF panel body in the REXX code?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Sat Mar 15, 2014 9:21 am    Post subject: How to write ISPF panel body in the REXX code?
Reply with quote

I saw someone create a REXX PGM and that REXX could display a ISPF panel and message , and he write the panel and message in the REXX , then you don't need to create another ISPP LIB and PSPM LIB , but I searched for a long time and can not find it anymore .......

Please help and tell me what the point that could write panel and message in the REXX . Thanks !
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Sat Mar 15, 2014 11:43 am    Post subject: Reply to: How to write ISPF panel body in the REXX code?
Reply with quote

a panel,msg,skel in the rexx code is not directly usable,
it is trick FOR SELDOM USED APPLICATIONS to not distribute the libraries but just one member/source with the REXX code anfd the other data needed to run the application.

REXX is just used as a container
what happens is that there is a prolog that allocates the libraries, writes the relevant parts of the source as members of the library issues the appropriate libdefs
and AT THIS point the application is invoked

so for frequently used commands the overhead is not reasonable
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Mon Mar 17, 2014 7:02 am    Post subject: Re: Reply to: How to write ISPF panel body in the REXX code?
Reply with quote

enrico-sorichetti wrote:
a panel,msg,skel in the rexx code is not directly usable,
it is trick FOR SELDOM USED APPLICATIONS to not distribute the libraries but just one member/source with the REXX code anfd the other data needed to run the application.

REXX is just used as a container
what happens is that there is a prolog that allocates the libraries, writes the relevant parts of the source as members of the library issues the appropriate libdefs
and AT THIS point the application is invoked

so for frequently used commands the overhead is not reasonable




Thank you enrico , I got it.


(Before asking I wonder how to allocate a library as a temp dataset , but after your answer , I found that I don't need to allocate a temp dataest , cause temp dataset also a dataset which must be allocated , same as the allocation by NEW CATLG , unfortunately what I create is just a SELDOM USED APPLICATION , I will use the trick you mentioned , I think I could allocate a USERID.XXX.ISPP and USERID.XXX.ISPM before display the panel. Thank you again ! )
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Mar 18, 2014 2:22 am    Post subject: Reply to: How to write ISPF panel body in the REXX code?
Reply with quote

You can use the sections of my code from this post.
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Tue Mar 18, 2014 8:03 am    Post subject: Re: Reply to: How to write ISPF panel body in the REXX code?
Reply with quote

superk wrote:
You can use the sections of my code from this post.


Thank you superk ! It works well .



I found that when you allocate the panel LIB , you did not use the DATASET parm .
Code:

"ALLOC DD("ddname") NEW REU RECF(F B) LRECL(80) DIR(2) SP(1) TR"


and also there's no FREE command for this DD, I read the allocate command reference and can not find the description that what happened when DATASET parm omitted , I guess it's a temp dataset that no need to FREE and it will be deleted when EXEC ends. Am I right ?
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am


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