IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

writing contents of file in an ispf panel


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Himanshu Kharkwal

New User


Joined: 16 Jun 2008
Posts: 5
Location: Pune

PostPosted: Tue Jun 17, 2008 10:12 am
Reply with quote

How to write contents of a file in an ispf panel using clist in table form?
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Jun 17, 2008 6:44 pm
Reply with quote

Perhaps you could make it a bit more clear, what you mean.
Then perhaps, someone could help you.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Tue Jun 17, 2008 9:06 pm
Reply with quote

Quote:
using clist

I recommend you use REXX and not a clist.

Quote:
contents of a file

Assuming REXX... use EXECIO to read the file

Quote:
in an ispf panel

Create a panel with a )MODEL section. See ISPF Dialog Developers Guide and Reference.

Quote:
in table form

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
View user's profile Send private message
Himanshu Kharkwal

New User


Joined: 16 Jun 2008
Posts: 5
Location: Pune

PostPosted: Wed Jun 18, 2008 9:51 am
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jun 18, 2008 3:18 pm
Reply with quote

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
View user's profile Send private message
Himanshu Kharkwal

New User


Joined: 16 Jun 2008
Posts: 5
Location: Pune

PostPosted: Wed Jun 18, 2008 3:29 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Jun 18, 2008 9:09 pm
Reply with quote

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
View user's profile Send private message
Himanshu Kharkwal

New User


Joined: 16 Jun 2008
Posts: 5
Location: Pune

PostPosted: Thu Jun 19, 2008 10:04 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Thu Jun 19, 2008 9:02 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Jun 23, 2008 4:15 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top