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
 

 

writing contents of file in an ispf panel

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: writing contents of file in an ispf panel
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: 755
Location: Germany

PostPosted: Tue Jun 17, 2008 6:44 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Jun 17, 2008 9:06 pm    Post subject: Reply to: writing contents of file in an ispf panel
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    Post subject: Re: writing contents of file in an ispf panel
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: 2360
Location: Israel

PostPosted: Wed Jun 18, 2008 3:18 pm    Post subject:
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    Post subject: Reply to: writing contents of file in an ispf panel
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

Senior Member


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

PostPosted: Wed Jun 18, 2008 9:09 pm    Post subject: Reply to: writing contents of file in an ispf panel
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    Post subject: Re: Reply to: writing contents of file in an ispf panel
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

Senior Member


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

PostPosted: Thu Jun 19, 2008 9:02 pm    Post subject: Reply to: writing contents of file in an ispf panel
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: 1232
Location: Israel

PostPosted: Mon Jun 23, 2008 4:15 pm    Post subject: Reply to: writing contents of file in an ispf panel
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    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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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