Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How search a word in a file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How search a word in a file
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    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Fri Mar 24, 2006 10:18 am    Post subject:
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    Post subject:
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: 464

PostPosted: Fri Mar 24, 2006 3:05 pm    Post subject: Re: How search a word in a file
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: 1452
Location: Chicago, IL

PostPosted: Fri Mar 24, 2006 3:36 pm    Post subject: Re: How search a word in a file
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us