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
 

 

Error while performing TBOPEN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Error while performing TBOPEN
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Mar 12, 2008 11:49 am    Post subject: Reply to: Error while performing TBOPEN
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    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Mar 12, 2008 11:57 am    Post subject: Reply to: Error while performing TBOPEN
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Mar 12, 2008 12:02 pm    Post subject: Reply to: Error while performing TBOPEN
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Mar 12, 2008 12:10 pm    Post subject: Reply to: Error while performing TBOPEN
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Mar 12, 2008 12:15 pm    Post subject: Reply to: Error while performing TBOPEN
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm


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