Focal Point
[SOLVED] Doesn't recognize Comment or WHERE or BY clause

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/569108511

May 15, 2009, 08:49 AM
<sh0bh1t>
[SOLVED] Doesn't recognize Comment or WHERE or BY clause
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>,
May 15, 2009, 08:53 AM
<JG>
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
May 15, 2009, 09:28 AM
<sh0bh1t>
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:


May 15, 2009, 09:32 AM
<JG>
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.
May 15, 2009, 10:09 AM
j.gross
quote:
UNKNOWN FOCUS COMMAND -*******

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
WF through 8.1.05
May 15, 2009, 10:49 AM
GamP
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

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
May 15, 2009, 04:20 PM
j.gross
Rereading your reply above ...
quote:
I am coding in a generic mainframe flat file.

What's the dsname, and how is sysin allocated in the JCL for the Focus jobstep?
May 18, 2009, 05:35 AM
<sh0bh1t>
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.