Page 1 of 1

ISPF TABLE CREATING USING REXX

PostPosted: Mon Apr 23, 2012 10:14 am
by kandrepavan
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"

Re: ISPF TABLE CREATING USING REXX

PostPosted: Mon Apr 23, 2012 11:46 am
by mongan
Simply look at what the TBCLOSE does in the manuals, you will find out why you need to do it.

Re: ISPF TABLE CREATING USING REXX

PostPosted: Tue Apr 24, 2012 8:56 am
by kandrepavan
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.

Re: ISPF TABLE CREATING USING REXX

PostPosted: Tue Apr 24, 2012 11:02 am
by enrico-sorichetti
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

Re: ISPF TABLE CREATING USING REXX

PostPosted: Wed Apr 25, 2012 2:36 pm
by kandrepavan
Thanx u very much for clear explanation