Inspect



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Inspect

Postby kartiprasad » Mon Jun 23, 2014 2:01 pm

Hi

Can anyone tell How to change the string ' I love my country' with 'I love my India' using inspect.


thanks,
Raj
kartiprasad
 
Posts: 2
Joined: Mon Jun 23, 2014 1:56 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Inspect

 

Re: Inspect

Postby Terry Heinze » Mon Jun 23, 2014 7:05 pm

What have you tried so far?
.... Terry
Terry Heinze
 
Posts: 193
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 10 times
Been thanked: 11 times

Re: Inspect

Postby kartiprasad » Mon Jun 23, 2014 9:00 pm

Hi Terry,

Thanks for your reply. I am not sure which is the best solution for this.

I have limited knowledge on this. I thought we can use Inspect with replacing option.

Could you please help me with the code part.

Please help me.

Thanks
Raj
kartiprasad
 
Posts: 2
Joined: Mon Jun 23, 2014 1:56 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Inspect

Postby Terry Heinze » Mon Jun 23, 2014 9:56 pm

Inspect is oftentimes used to replace one character with another although it has several other uses. Is your string a literal in your program or part of a display statement or what? We neen more info.
.... Terry
Terry Heinze
 
Posts: 193
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 10 times
Been thanked: 11 times

Re: Inspect

Postby NicC » Mon Jun 23, 2014 11:46 pm

Please do not post the same question on multiple forums. I cannot lock the topic on the other forum where I found this but I can, and will, lock it here.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post