View previous topic :: View next topic
|
Author |
Message |
Himanshu Kharkwal
New User
Joined: 16 Jun 2008 Posts: 5 Location: Pune
|
|
|
|
How to write contents of a file in an ispf panel using clist in table form? |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Perhaps you could make it a bit more clear, what you mean.
Then perhaps, someone could help you. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
I recommend you use REXX and not a clist.
Quote: |
contents of a file |
Assuming REXX... use EXECIO to read the file
Create a panel with a )MODEL section. See ISPF Dialog Developers Guide and Reference.
You need to write a program that does:
* TBCREATE to create table
* a bunch of TBADD
* display with TBDISPL
Use the same variable names as in the ISPF panel. See ISPF Services Guide for more information |
|
Back to top |
|
|
Himanshu Kharkwal
New User
Joined: 16 Jun 2008 Posts: 5 Location: Pune
|
|
|
|
Actually the thing is that i know only clist and i have some contents in file like this....
Count
Temp
Main
Note
Xyz....
upto 30 members
So according to requirement when i read the file it will display in panel like this
Count Temp Main Note...
.... ...... ...... .....
upto 30 members
i am not getting how to do this...? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You might want to clarify your terms in order to get a sufficient answer: What is file for you, and what are members?
O. |
|
Back to top |
|
|
Himanshu Kharkwal
New User
Joined: 16 Jun 2008 Posts: 5 Location: Pune
|
|
|
|
oh sorry i have written members there by mistake,they are records of file.
I want the records of these file into ispf panel .
i know how to make panel but i am not getting how to get those records in the format i have specified |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
Actually the thing is that i know only clist |
Sorry, my recommendation still stands. CLIST is archaic and you should not continue to use it.
Quote: |
i am not getting how to get those records in the format i have specified |
It is not clear what you have specified.
It seems like your records have one piece of data on them and you want to combine the data onto one line. Is that correct? |
|
Back to top |
|
|
Himanshu Kharkwal
New User
Joined: 16 Jun 2008 Posts: 5 Location: Pune
|
|
|
|
ya i want them on one line but there is a single space between two records,if one line ends the continuation will starts from the second line
ex. if i have 3o records in a file they will appear on panel like this...
count num note rep cal wri
fil pan def isp ban fon
colo ... ...
in this way |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
It is still not clear what you want to display.
1. your sample input does not show the problems you mention
2. You did not explain what is wrong with the sample output that you show.
It seems that spacing is important to you. When you post messages here, please learn to use the code tags so that you can show text using monospace font for your examples. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
For me, CLIST is a kind of "read-only" language. If I need to write something, I use REXX...
Now, I've looked at the CLIST documentation and I found the following points:
Code: |
SET SPC = STR( ) /* SPC contains one space
SET LINE = &LINE&SPC&WORD /* appends WORD to LINE with one space
&LENGTH(&LINE) /* Shows line length
OPENFILE, GETFILE, CLOSFILE /* to read the file |
All this should be enough for you to do what you need |
|
Back to top |
|
|
|