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

COBOL Replacing verb not getting replaced


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

New User


Joined: 09 Aug 2006
Posts: 37
Location: Pune, India

PostPosted: Thu Sep 27, 2007 11:20 am
Reply with quote

Hi,
I am using the following syntax. But it is not getting replaced. May I have some answer.
I define it in Working storage SECTION.

01 WS-HRRP01-BAL-HDR-REC-LAYOUT.

COPY TIBWXHDW REPLACING ==:WS-HDR:== BY ==BAL==.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Sep 27, 2007 11:31 am
Reply with quote

Sarvanan,

Quote:
COPY TIBWXHDW REPLACING ==:WS-HDR:== BY ==BAL==.


How does the vars are declared in the copybook (like :ws-hdr:-xxxx or ws-hdr-xxx)?
Back to top
View user's profile Send private message
Sarva_bubli

New User


Joined: 09 Aug 2006
Posts: 37
Location: Pune, India

PostPosted: Thu Sep 27, 2007 11:44 am
Reply with quote

Hi Murali,
In copybook it is declared as ws-hdr-xxx only. Here either I can replace this with WS-BAL-HDR also instead of BAL. THis one also will do.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Sep 27, 2007 12:09 pm
Reply with quote

Try this -

Code:
COPY TIBWXHDW REPLACING ==WS-HDR== BY ==BAL==.
Back to top
View user's profile Send private message
Sarva_bubli

New User


Joined: 09 Aug 2006
Posts: 37
Location: Pune, India

PostPosted: Wed Oct 03, 2007 5:03 pm
Reply with quote

Hi Murali,
Many Thanks for the valuable info.
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top