MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

INSPECT stmt in COBOL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
ST
Beginner


Joined: 04 Jan 2003
Posts: 24
Topics: 12

PostPosted: Mon Jan 06, 2003 8:15 pm    Post subject: INSPECT stmt in COBOL Reply with quote

Hi,
How can we use INSPECT stmt to achieve this..

I have string STR1 which has 'A32KP918D4C'; and want to replace all ALPHABETIC fields to 0(Zeros).

Pls give me the syntax

Thanks
ST
Back to top
View user's profile Send private message
Venkata Ramana Reddy
Beginner


Joined: 02 Dec 2002
Posts: 70
Topics: 19
Location: California

PostPosted: Mon Jan 06, 2003 8:41 pm    Post subject: Reply with quote

ST,

Here is the Syntax...

Code:
INSPECT STR1
             REPLACING CHARACTERS BY ZEROS

_________________
Venkataramana
-- Good judgement comes from experience, and often experience comes from bad judgement.
Back to top
View user's profile Send private message
vallishar
Beginner


Joined: 17 Dec 2002
Posts: 53
Topics: 14
Location: BengaLuru

PostPosted: Tue Jan 07, 2003 5:16 pm    Post subject: Reply with quote

Could you also tell as to what INSPECT does?
_________________
If you're not failing every now and again, it's a sign you're not doing anything very innovative.
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12368
Topics: 75
Location: San Jose

PostPosted: Tue Jan 07, 2003 5:31 pm    Post subject: Reply with quote

Vallishar,

Check the link below for a detailed explanation of what INSPECT can do.

Tallying and replacing data items (INSPECT)

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group