Page 1 of 2

View and update ISPF profile table

PostPosted: Thu Jun 25, 2015 9:13 pm
by mymainframe
Hi,

How can I view and update ISPF profile tables using REXX.

I am developing a REXX tool, where I need to use File-AID ISPF profile table to view and update.

Thanks.

Re: View and update ISPF profile table

PostPosted: Fri Jun 26, 2015 1:49 am
by Pedro
Use ISPF table services to process the table. Read the ISPF Services manual for the following topics:
    TBOPEN
    TBQUERY
    TBTOP
    TBSKIP
    TBMOD
    TBCLOSE
    LIBDEF

Re: View and update ISPF profile table

PostPosted: Fri Jun 26, 2015 3:09 pm
by mymainframe
Hi Pedro,

Can you please provide sample code for above table operations.

Thank you.

Re: View and update ISPF profile table

PostPosted: Fri Jun 26, 2015 3:24 pm
by prino
Did you miss the

... Read the ISPF Services manual for the following topics: ...

Maybe you want Pedro to just write the application for you?

Re: View and update ISPF profile table

PostPosted: Fri Jun 26, 2015 6:12 pm
by mymainframe
I was trying to open ISPF tables using 3.16 option. Instead of opening table, its showing as below.


__*** Extension variables only ***


It was working fine for the table which I create in my PDS.

Can someone explain why ISPF table is not opening.

Thanks.

Re: View and update ISPF profile table

PostPosted: Fri Jun 26, 2015 8:54 pm
by NicC
Not without seeing your entire table-handling code.

Re: View and update ISPF profile table

PostPosted: Fri Jun 26, 2015 9:31 pm
by Pedro
Can you please provide sample code for above table operations.

This is a help forum, not a 'do it for me' forum.

You can get sample code by using the editor. Issue this command:
MODEL TBOPEN



Click here are some example programs http://lmgtfy.com/?q=Example+of+ISPF+table+processing+program#

Re: View and update ISPF profile table

PostPosted: Fri Jun 26, 2015 9:58 pm
by Pedro
Can someone explain why ISPF table is not opening.

Perhaps the table only has extension variables only! You can still type an E in the input field to see the extension variables.

Re: View and update ISPF profile table

PostPosted: Mon Jun 29, 2015 1:56 pm
by mymainframe
Hi Pedro,

I can see extension variables. Can I edit/change these variables using REXX.

Thanks.

Re: View and update ISPF profile table

PostPosted: Mon Jun 29, 2015 11:35 pm
by Pedro
Can I edit/change these variables using REXX.

Yes.

Repeating:
Use ISPF table services to process the table. Read the ISPF Services manual for the following topics:
    TBOPEN
    TBQUERY
    TBTOP
    TBSKIP
    TBMOD
    TBCLOSE
    LIBDEF