Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tablebase sorting in COBOL-390 1

Status
Not open for further replies.

manojgovindan

Programmer
Dec 26, 2002
7
0
0
US
Hi all,

I used tablebase sorting in one of my subroutines.
Everytime the driver pgm calls the subroutine, it creates a new table and deletes it before return to main program. The driver calls the subpgm many a time and will this cause performance problem? Is there any alternative using which I can avoid redefining the table everytime.

To define table
MOVE 'DT' TO TABLEBASE-COMMAND-ID
To close table
MOVE 'CL' TO TABLEBASE-COMMAND-ID
The call
CALL 'TBCALLI' USING TABLEBASE-COMMAND-AREA
TABLEBASE-DEFINE-AREA.

any help is much appreciated

Thanks,
Manoj
 
1. Define the table ('DT' command)
2. Populate the table, retrieve & process the data etc
3. Empty the table ('MT' command)
4. Repeat steps 2-3 as many times as necessary
5. Close the table ('CL' command)

[thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top