View previous topic :: View next topic
|
Author |
Message |
mustafaamani
New User
Joined: 02 Feb 2007 Posts: 10 Location: chennai
|
|
|
|
I want to include one more field in the ISPF table
Can anybody tell me how can we modify the strucutre of the ISPF table using a REXX program.
Mustafa |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
I want to include one more field in the ISPF table |
ISPF table is a very generic term,
which table You want to update?
I do not see any use in adding fields,
ISPF will never use them,
furthermore ISPF might change it' s internal tables layout
be a little more specific on what You want to do
regards
e.s |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I presume that Mustafa is asking about a specific user-defined table.
Off the top of my head, I would imagine the process to be
- TBOPEN the existing table.
- use TBQUERY to determine the existing index and field names.
- use a loop with TBGET to retrieve each table row, storing the data as either REXX stem variables or into a temporary dataset.
- TBCLOSE the existing table.
- TBCREATE the new table, with the old table's name, indexes and fields, with the new field added.
- TBADD the rows to the new table.
- TBCLOSE the new table. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Hi superk!
what bothers me in this kind of question is that the poster does not give anybody the slightest idea that he tried to help himself before asking...
I know I was being picky, in my remark, but given your assumption, reading the application which manages the user table should have given him a little hint on how to proceed and ask a question more apt to get help
If I were a founding father I would require that all the posters should declare, before posting, to have read and understood the following howto
http://www.catb.org/~esr/faqs/smart-questions.html
quote form Eric S. Raymond
Quote: |
I get a lot of letters from people asking if they can link to pages on my site, mirror them, do translations, etc. Here is my policy:
* You may link to any portion of this site that you wish.
* |
A perfectly correct, logically, answer to the first post would have been a simple
YES
regards
e.s |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Most of the ISPF table-services which allow a table update (like TBADD, TBMOD, TBPUT) allow the use of extension variables. Please refer to the fine manual for more information.
O. |
|
Back to top |
|
|
|