Aug 20, 2004 #1 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.
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.
Aug 20, 2004 #2 PHV MIS Nov 8, 2002 53,708 FR 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 Upvote 0 Downvote
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
Aug 20, 2004 Thread starter #3 nxm150 Programmer May 22, 2002 78 US 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). Upvote 0 Downvote
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).
Aug 20, 2004 #4 slade Programmer Jun 11, 2000 823 US 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 Upvote 0 Downvote
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
Aug 20, 2004 Thread starter #5 nxm150 Programmer May 22, 2002 78 US That worked. I didn't think I would need ALL LEADING OR FIRST since there was only 1 ',' in my literal. Upvote 0 Downvote
That worked. I didn't think I would need ALL LEADING OR FIRST since there was only 1 ',' in my literal.
Aug 20, 2004 #6 webrabbit MIS Jan 31, 2003 1,059 US 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. Upvote 0 Downvote
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.
Aug 20, 2004 #7 k5tm Programmer Aug 24, 2001 2,038 US It is not how many ',' are in the literal, but how many ", " are in WS-VCPY-DSN. Tom Morrison http://www.liant.com Upvote 0 Downvote
It is not how many ',' are in the literal, but how many ", " are in WS-VCPY-DSN. Tom Morrison http://www.liant.com
Aug 21, 2004 #8 slade Programmer Jun 11, 2000 823 US 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 Upvote 0 Downvote
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