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

Error while performing TBOPEN


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kavya123
Warnings : 1

New User


Joined: 11 Jul 2007
Posts: 34
Location: hyderabad

PostPosted: Wed Mar 12, 2008 11:38 am
Reply with quote

I have created a table using TBCREATE and added some records using TBADD then closed it.

Table was successfully created and saved.

But when i tried to open the table in other member I am getting RC = 8 which says table is not existing.

Can someone help me out!!!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Mar 12, 2008 11:49 am
Reply with quote

Quote:
Table was successfully created and saved.

do You trust more Your judgment or the message icon_confused.gif

review the create and save part,
check and make god use of the return code information

or said in a more rude icon_biggrin.gif fashion... fix Your program
( edited to lower case, kEyboard stuck )
Back to top
View user's profile Send private message
kavya123
Warnings : 1

New User


Joined: 11 Jul 2007
Posts: 34
Location: hyderabad

PostPosted: Wed Mar 12, 2008 11:56 am
Reply with quote

This is my first program in which i have created,added and saved.

Code:
address ispexec                                     
"libdef isptabl dataset id('U153134.REXX.TABLES')"   
"tbcreate emp keys(empid) names(name) write share"   
say 'rc of create' rc                               
empid = 1                                           
name = kavya                                         
"tbadd emp order"                                   
say 'rc of add 1' rc                                 
empid = 2                                           
name = sushma                                       
"tbadd emp order"                                   
say 'rc of add 2' rc                                 
"tbclose emp"                                       
say 'rc of close' rc                                 
exit 


i got all RC as '0' and i can see the table EMP created with the records i have added in my PDS.

After that i wrote other code to open the table as follows

Code:
ADDRESS ISPEXEC                                       
"LIBDEF ISPTABL DATASET ID('U153134.REXX.TABLES')"   
"TBOPEN EMP NOWRITE SHARE"                           
SAY 'RC OF OPEN' RC                                   
EXIT 


I am getting RC =8.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Wed Mar 12, 2008 11:57 am
Reply with quote

Are ISPTLIB and ISPTABL using the same library? If so, do you see your table actually in the ISPTABL library?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Mar 12, 2008 12:02 pm
Reply with quote

Check if Your table library is in Your ISPTLIB concatenation icon_exclaim.gif
the code was right, the setup has to be fixed icon_biggrin.gif
Back to top
View user's profile Send private message
kavya123
Warnings : 1

New User


Joined: 11 Jul 2007
Posts: 34
Location: hyderabad

PostPosted: Wed Mar 12, 2008 12:07 pm
Reply with quote

SuperK,

Could you plaese help me out in seeing the table in ISPTLIB.

How to do that?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Mar 12, 2008 12:10 pm
Reply with quote

same as for isptabl ... LIBDEF ISPTLIB ... ...
Back to top
View user's profile Send private message
kavya123
Warnings : 1

New User


Joined: 11 Jul 2007
Posts: 34
Location: hyderabad

PostPosted: Wed Mar 12, 2008 12:14 pm
Reply with quote

Thank You Enrico and SuperK

After changing the libdef to ISPTLIB i am able to open the table.

Thanks a ton!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Mar 12, 2008 12:15 pm
Reply with quote

You are welcome icon_smile.gif
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top