View previous topic :: View next topic |
Author |
Message |
nbdtrjk1 Beginner
Joined: 12 Apr 2007 Posts: 76 Topics: 41
|
Posted: Wed Apr 09, 2008 1:19 am Post subject: Help on Tallying |
|
|
01 A1 PIC X(21) VALUE ' IACXEFDS '
01 WS-CNT PIC 9(4) COMP.
INSPECT A1 Tallying WS-CNT for "A" OR "C" OR "X"
when i do compile for the above code i getting Error.
The above code is valid one? else please provide me alternate solution. |
|
Back to top |
|
 |
jyoung Beginner
Joined: 10 Nov 2005 Posts: 36 Topics: 2 Location: Flint, MI
|
Posted: Wed Apr 09, 2008 6:20 am Post subject: |
|
|
What is the compile error that you are receiving? |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Apr 09, 2008 6:41 am Post subject: |
|
|
Why don't you try looking up the syntax in a manual?
Code: |
INSPECT A1 Tallying WS-CNT for "A", "C", "X"
|
instead of dreaming-up your own syntax, check the manual. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
johngo_za Beginner

Joined: 14 Mar 2008 Posts: 7 Topics: 2 Location: Pretoria, SA
|
Posted: Thu Apr 10, 2008 5:04 am Post subject: |
|
|
Yep dbzTHEdinosauer is correct,
Also you can add in the ALL verb,
INSPECT A1 Tallying WS-CNT for ALL "A", "C", "X".
John  |
|
Back to top |
|
 |
|
|