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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to write 5 lines in a Varible in REXX program ?
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 13, 2011 2:34 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Jul 13, 2011 6:37 pm    Post subject: Reply to: How to write 5 lines in a Varible in REXX program
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: 1218
Location: Israel

PostPosted: Wed Jul 13, 2011 10:40 pm    Post subject: Re: How to write 5 lines in a Varible in REXX program ?
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    Post subject:
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    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Jul 15, 2011 2:32 pm    Post subject:
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

New User


Joined: 20 May 2010
Posts: 99
Location: canada

PostPosted: Fri Jul 15, 2011 5:17 pm    Post subject: Reply to: How to write 5 lines in a Varible in REXX program
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: 1218
Location: Israel

PostPosted: Fri Jul 15, 2011 8:59 pm    Post subject:
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: 183
Location: Toronto, ON, Canada

PostPosted: Wed Jul 20, 2011 1:05 am    Post subject: Re: How to write 5 lines in a Varible in REXX program ?
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: 35
Location: Pune

PostPosted: Fri Aug 26, 2011 5:44 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Fri Aug 26, 2011 6:05 pm    Post subject:
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: 35
Location: Pune

PostPosted: Sun Aug 28, 2011 1:55 pm    Post subject: Reply to: How to write 5 lines in a Varible in REXX program
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 1 Fri Dec 02, 2016 9:47 am
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am


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