View previous topic :: View next topic |
Author |
Message |
ST Beginner
Joined: 04 Jan 2003 Posts: 24 Topics: 12
|
Posted: Mon Jan 06, 2003 8:15 pm Post subject: INSPECT stmt in COBOL |
|
|
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 |
|
|
Venkata Ramana Reddy Beginner
Joined: 02 Dec 2002 Posts: 70 Topics: 19 Location: California
|
Posted: Mon Jan 06, 2003 8:41 pm Post subject: |
|
|
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 |
|
|
vallishar Beginner
Joined: 17 Dec 2002 Posts: 53 Topics: 14 Location: BengaLuru
|
Posted: Tue Jan 07, 2003 5:16 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|