Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is wrong with this INSPECT?

Status
Not open for further replies.

nxm150

Programmer
May 22, 2002
78
US
I can't see any obvious errors.

INSPECT WS-VCPY-DSN REPLACING ', ' BY 'VCPY,'.


"', '" WAS FOUND IN THE "INSPECT" STATEMENT. IT WAS NOT ALLOWED IN THIS CONTEXT. THE STATEMENT WAS DISCARDED.
 
Have you tried this ?
INSPECT WS-VCPY-DSN REPLACING ", " BY "VCPY,".

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I don't think changing the ' to " will help. I looked at source code on a different program that has the inspcect and it uses the '

If it help, my filed is defined as

01 WS-VCPY-DSN PIC X(80).
 
Hi NMX,

I think you're missing the required field before the lit:

Pick one:

ALL
LEADING
FIRST

Regards, Jack.

"A problem well stated is a problem half solved" -- Charles F. Kettering
 
That worked. I didn't think I would need ALL LEADING OR FIRST since there was only 1 ',' in my literal.
 
It is required that you use one of the keywords. In your case, FIRST would reduce the amount of processing, since you say there is only one.
 
Hi NMX,

You can save yourself a lot of grief if you read the manual section that shows you how to interpret the syntax diagrams.

It identifies that field as required, not optional.

Regards, Jack.

"A problem well stated is a problem half solved" -- Charles F. Kettering
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top