ISPF TABLE CREATING USING REXX



IBM's Command List programming language & Restructured Extended Executor

ISPF TABLE CREATING USING REXX

Postby kandrepavan » Mon Apr 23, 2012 10:14 am

Hi all,

i am trying to create a ispf table using rexx , if i am giving last statement it is getting created else not.
i would like to know the reason.


ADDRESS ISPEXEC       
"TBCREATE EMP KEYS(EMPID) NAMES(EMPNAME EMPPH) WRITE "   
"TBCLOSE EMP"
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time

Re: ISPF TABLE CREATING USING REXX

 

Re: ISPF TABLE CREATING USING REXX

Postby mongan » Mon Apr 23, 2012 11:46 am

Simply look at what the TBCLOSE does in the manuals, you will find out why you need to do it.
User avatar
mongan
 
Posts: 212
Joined: Tue Jan 11, 2011 8:32 pm
Has thanked: 1 time
Been thanked: 5 times

Re: ISPF TABLE CREATING USING REXX

Postby kandrepavan » Tue Apr 24, 2012 8:56 am

hi mongan,

my doubt is we are not processing this table i mean we are not inserting data or deleting data .we are just creating a table a new one,
then why to give tbclose.
actually tbclose says it terminates the processing the processing of atable
incase if it is open in write mode copies data from virtual storage to table.
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time

Re: ISPF TABLE CREATING USING REXX

Postby enrico-sorichetti » Tue Apr 24, 2012 11:02 am

if You had read the manuals, You would have known the reason :mrgreen:

the first line of the TBCREATE description in the ISPF service guide manual tells clearly that
The TBCREATE service creates a new table in virtual storage, and opens it for processing.

and later on it tells that to save it on disk a TBSAVE or a TBCLOSE is needed
a plain TBEND will just discard the virtual storage copy
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: ISPF TABLE CREATING USING REXX

Postby kandrepavan » Wed Apr 25, 2012 2:36 pm

Thanx u very much for clear explanation
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post