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
 

 

Query regarding ISPF table - TBADD and TBSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
suchita_thorat

New User


Joined: 22 Feb 2008
Posts: 11
Location: Pune,India

PostPosted: Thu Sep 04, 2008 5:47 pm    Post subject: Query regarding ISPF table - TBADD and TBSORT
Reply with quote

Hi,

I have following code snippet in my program for ISPF tables -

Declaration:

05 TBLDTE PIC X(08) VALUE 'TBLDTE'.
05 TBLDTEV PIC X(30) VALUE
'(KEY OLSTMO OLSTDY OLSTYR OVAL) '.
05 TBLDTES PIC X(30) VALUE
'(KEY,C,A,OLSTYR,C,D,OLSTMO,C,D,OLSTDY,C,D) '.

Calls Made in the program:

1) CALL SPF-ISPLINK USING SPF-TBCREATE TBLDTE
SPF-BLANKZ
TBLDTEV
SPF-NOWRITE
SPF-REPLACEZ

2) CALL SPF-ISPLINK USING SPF-TBSORT TBLDTE TBLDTES.

3) CALL SPF-ISPLINK USING SPF-TBADD TBLDTE
SPF-BLANKZ
SPF-ORDERZ
SPF-MULT


How SPF-ORDERZ works while doing row addition in table (in case of SPF-TBADD)?

What about the TBLDTEV, how it will be used in SPF-TBADD?

Is there any effect of TBLDATES (sort criteria of the table) while adding row in the table during SPF-TBADD?
Back to top
View user's profile Send private message

Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Thu Sep 04, 2008 9:44 pm    Post subject: Reply to: Query regarding ISPF table - TBADD and TBSORT
Reply with quote

All of the SPF-** in your example are constants in your program. It would help if you included how they were declared / initialized.

Quote:
How SPF-ORDERZ works while doing row addition in table (in case of SPF-TBADD)?

If you sort a table then add rows with ORDER, the final result will be in sort sequence. Otherwise, new rows are added to the end (I think).

Quote:
What about the TBLDTEV, how it will be used in SPF-TBADD?

You specify which variables are part of the table during TBCREATE. When you do a TBADD, it uses those same variables. The contents of the variables at the time of the TBADD are added as a new row to the table.

Quote:
Is there any effect of TBLDATES (sort criteria of the table) while adding row in the table during SPF-TBADD?

If you sort a table then add rows with ORDER, the final result will be in sort sequence. Otherwise, new rows are added to the end (I think).
Back to top
View user's profile Send private message
suchita_thorat

New User


Joined: 22 Feb 2008
Posts: 11
Location: Pune,India

PostPosted: Mon Sep 15, 2008 12:30 pm    Post subject: Reply to: Query regarding ISPF table - TBADD and TBSORT
Reply with quote

Thanks for your help 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 Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am


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