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

How search a word in a file


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
perez_a

New User


Joined: 02 Feb 2006
Posts: 25
Location: Italy

PostPosted: Thu Mar 23, 2006 8:10 pm
Reply with quote

Hello friends, there is any method to search a word in a file?
Thx .. icon_lol.gif
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Fri Mar 24, 2006 10:00 am
Reply with quote

Hi perez_a,

open the pds and try this...

Code:
command ===> SRCHFOR <WORD>



corrections welcomed...............


Thanks,
Rajesh
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Fri Mar 24, 2006 10:18 am
Reply with quote

hi,

just open ur pds & give

F <string u want to search>

or either u can search using 3.14

Hope it will be helpful
Back to top
View user's profile Send private message
perez_a

New User


Joined: 02 Feb 2006
Posts: 25
Location: Italy

PostPosted: Fri Mar 24, 2006 2:31 pm
Reply with quote

guptae wrote:
hi,

just open ur pds & give

F <string u want to search>

or either u can search using 3.14

Hope it will be helpful


Hi guptae,
thx for your reply.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Fri Mar 24, 2006 3:05 pm
Reply with quote

HI,

Quote:
Hello friends, there is any method to search a word in a file?


Adding to Guptae reply, If you want to Number of time the string occured then you can use following command,

Code:
F all <String name>


Hope this helps

Regards
Rupesh
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Mar 24, 2006 3:36 pm
Reply with quote

Hi Ekta,

Quote:
hi,

just open ur pds & give

F <string u want to search>

Was that really meant for PDS or you did a typo... This should be for a PS.

Regards,
Priyesh.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
Search our Forums:

Back to Top