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

reading the component through rexx and scaning for string


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Sep 16, 2008 2:04 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Sep 16, 2008 7:40 pm
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

Global Moderator


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

PostPosted: Tue Sep 16, 2008 9:45 pm
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 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 Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top