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
 

 

reading the component through rexx and scaning for string

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
pradeepkit
Warnings : 1

New User


Joined: 25 Jun 2008
Posts: 60
Location: chennai

PostPosted: Tue Sep 16, 2008 1:51 pm    Post subject: reading the component through rexx and scaning for string
Reply with quote

Hi ,

I need to read a member of a pds and inside that i need to search a string can you help me out doing that ............
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: Tue Sep 16, 2008 2:04 pm    Post subject:
Reply with quote

You allocate the PDS through the ALLOCATE command

You can then either read the contents into a stem variable and process them one by one or use an ISPF edit macro to check to see if the required string is in the member.

Numerous examples will exist on the forum.
Back to top
View user's profile Send private message
pradeepkit
Warnings : 1

New User


Joined: 25 Jun 2008
Posts: 60
Location: chennai

PostPosted: Tue Sep 16, 2008 7:35 pm    Post subject: Reply to: reading the component through rexx and scaning for
Reply with quote

Hi,

Could you please tell me which ISPF edit macro to be used
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: Tue Sep 16, 2008 7:40 pm    Post subject: Re: Reply to: reading the component through rexx and scaning
Reply with quote

pradeepkit wrote:
Hi,
Could you please tell me which ISPF edit macro to be used


Unfortunately not, you have not written it yet icon_lol.gif
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Tue Sep 16, 2008 9:45 pm    Post subject: Reply to: reading the component through rexx and scaning for
Reply with quote

It is probably easiest to use ALLOC command then EXECIO command. To learn EXECIO command, see "TSOE Rexx Reference" manual.
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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