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

HOW CAN I FIND A WORD IN A FILE WITH COBOL INSTRUCTION


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: Fri Mar 24, 2006 5:57 pm
Reply with quote

HI FRIENDS,
I NEED TO FIND A WORD IN A FILE WITH COBOL COMMAND TO REPLACE
IT, THE RECORD LENGTH IS 80.
THX TO ALL
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Fri Mar 24, 2006 6:42 pm
Reply with quote

Hi,
First read input file and move to ws variable then

syntax
REPLACE ==pseudo-text1== BY ==pseudo-text2==.

Example

Input
welcome
INITIALIZE ws vaiable REPLACE "welcome" BY "india'
output
replace

If other use Unstring/String
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 Replace each space in cobol string wi... COBOL Programming 3
Search our Forums:

Back to Top