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

How to write 5 lines in a Varible in REXX program ?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nmodi85

New User


Joined: 13 Jul 2011
Posts: 9
Location: India

PostPosted: Wed Jul 13, 2011 2:25 pm
Reply with quote

I have written a Program which Search the member. The content of the member is shown. However I want to pass all the information of the member in a Variable and the then I want to display the Varible. Please help me.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 13, 2011 2:34 pm
Reply with quote

Please explain in simple terms of exactly what and why you want do do
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Jul 13, 2011 6:37 pm
Reply with quote

Use EXECIO to read the dataset into a rexx stem variable. Your search should be by examining the stem variable.

Use the ISPF display service to display your variables.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Jul 13, 2011 10:40 pm
Reply with quote

What do you mean by
nmodi85 wrote:
I want to pass all the information of the member in a Variable.
Which information?

To display the variable, you need only to
Code:
Say MyVar
but I guess you mean more than that, so... we want more information too!
Back to top
View user's profile Send private message
nmodi85

New User


Joined: 13 Jul 2011
Posts: 9
Location: India

PostPosted: Fri Jul 15, 2011 2:20 pm
Reply with quote

The Rexx program will display its Output in the Panel....

I have made a Tool in which I want to display the data which was searched in the Member present in PDS. However My program is able to display the same but only one line. I want to display the information like Abend Discription and its resolution steps which is more then one line.

So please help me !!!!!!
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jul 15, 2011 2:30 pm
Reply with quote

OMG, another I wrote a tool! thread,
by someone who does not understand the 'tools' they are using!

Quote:
So please help me !!!!!!

with the usual Please do my work for me
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Jul 15, 2011 2:32 pm
Reply with quote

nmodi85 wrote:
The Rexx program will display its Output in the Panel....

I have made a Tool in which I want to display the data which was searched in the Member present in PDS. However My program is able to display the same but only one line. I want to display the information like Abend Discription and its resolution steps which is more then one line.

So please help me !!!!!!


It would help if you were to supply an example of a member you are processing and the result you are expecting. An example of the search argument(s) and the Panel would also help. What you have given so far is extremely vague.

Garry.
Back to top
View user's profile Send private message
anatol

Active User


Joined: 20 May 2010
Posts: 121
Location: canada

PostPosted: Fri Jul 15, 2011 5:17 pm
Reply with quote

loos like you design your panel with only one output line ...
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Fri Jul 15, 2011 8:59 pm
Reply with quote

nmodi85 wrote:
I have made a Tool in which I want to display the data which was searched in the Member present in PDS. However My program is able to display the same but only one line. I want to display the information like Abend Discription and its resolution steps which is more then one line.
Ahh, a Tool with a big T!!
So far you have not received any help because you haven't given any relevant information. Nobody knows (except you) what are the "resolution steps" and nobody knows how you have defined your panel!
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 202
Location: Toronto, ON, Canada

PostPosted: Wed Jul 20, 2011 1:05 am
Reply with quote

nmodi85 wrote:
I have written a Program which Search the member. The content of the member is shown. However I want to pass all the information of the member in a Variable and the then I want to display the Varible. Please help me.


If you are doing a simple "search and display" then you don't need a rexx for this. Use ISPF Super Search (option 3.15) which can display the "found" line plus lines before and after. Use the LPSF process option for this. You can also control the number of lines displayed by using Edit Statements.
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Fri Aug 26, 2011 5:44 pm
Reply with quote

nmodi85

You need to read the member into one stem veriable and display the records

Code:
"EXECIO * DISKR FIN (FINIS STEM IN."
DO RCD =1 to IN.1
  SAY IN.RCD
END
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Aug 26, 2011 6:05 pm
Reply with quote

Vkp321 wrote:
nmodi85

You need to read the member into one stem veriable and display the records

Code:
"EXECIO * DISKR FIN (FINIS STEM IN."
DO RCD =1 to IN.1
  SAY IN.RCD
END


It is kind of you to contribute, but did you test this? What is in IN.1 for controlling the end of your DO?
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Sun Aug 28, 2011 1:55 pm
Reply with quote

My bad, it should be IN.0 that contains the total number of records.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top