Forums
WebFOCUS/FOCUS
[SOLVED] Doesn't recognize Comment or WHERE or BY clause|
Go
![]() |
New
![]() |
Search
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
I have written a report but when I try executing it, I receive this unusual error message:
UNKNOWN FOCUS COMMAND -******* BYPASSING TO END OF COMMAND It does not recognize the comment statement and similar processing happens for 'WHERE' and 'BY' used for filtering and sorting records. Is there any spacing that I should follow, just like Cobol's margins. Help Appreciated. This message has been edited. Last edited by: sh0bh1t, FOCUS 7.3 on Mainframes z/OS XPTR Reports on Mainframes |
||
|
|
Virtuoso |
Post the section of code between code tags
and we might be able to see the problem. Do not know what editor you are using but make sure you have no tab characters |
|||
|
|
Member |
Thanks for your prompt reply JG.
I am not using any specific editor, I am coding in a generic mainframe flat file. The comment belongs to the start of my code which explains what the report prints. Snapshot is as below: FOCUS 7.3 on Mainframes z/OS XPTR Reports on Mainframes |
|||
|
|
Virtuoso |
You have to wrap the code in code tags for us to be able to see it.
right hand button on the tool bar or if you are posting an image then you need to place it on a server where it can be picked up. |
|||
|
|
Master |
I think I know your problem: In mainframe batch focus execution, the file allocated as //SYSIN must be pure Focus code -- it cannot contain dialog manager code. Any dialog manager directive lines (including -* comments) will be rejected as unknown Focus commands, and &var substitution will not take place (e.g., &DATE in a report heading will appears as just that). You need to store your focus code as a member of a PDS allocated to FOCEXEC, and invoke it via EX focexecname in the sysin script, in order for its dialog manager constructs to be properly handled. - Jack Gross Client: WF 7.6.8, MR, Dashboard, Oracle, Unix. |
|||
|
|
Virtuoso |
We can't access your D: drive thus also not your untitled.jpeg image... That's why we can't see your snapshot.
Just pick up your code as text, and paste it here between the code tags (right most icon : < / >). GamP
|
|||||
|
|
Master |
Rereading your reply above ...
What's the dsname, and how is sysin allocated in the JCL for the Focus jobstep? |
|||
|
|
Member |
Hi everyone, Thanks for all your inputs.
i. As j.gross rightly said, the FOCUS code has to be in a PDS. When I use PRINTON and PRINTOFF, it behaved as if passed in SYSIN, otherwise it works good. ii. The errors I received were because of a difference in my Production and Development environments and steplibs were required. Once again thanks to all of you for your efforts. FOCUS 7.3 on Mainframes z/OS XPTR Reports on Mainframes |
|||
|
| Powered by Social Strata |
| Please Wait. Your request is being processed... |
|
Forums
WebFOCUS/FOCUS
[SOLVED] Doesn't recognize Comment or WHERE or BY clause
