IB - Developer Center    Forums  Hop To Forum Categories  WebFOCUS/FOCUS    [SOLVED] Doesn't recognize Comment or WHERE or BY clause
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
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
 
Posts: 3 | Registered: April 30, 2009Reply With QuoteReport This Post
JG
Virtuoso
Posted Hide Post
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
 
Posts: 1586 | Registered: February 24, 2005Reply With QuoteReport This Post
Member
Posted Hide Post
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
 
Posts: 3 | Registered: April 30, 2009Reply With QuoteReport This Post
JG
Virtuoso
Posted Hide Post
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.
 
Posts: 1586 | Registered: February 24, 2005Reply With QuoteReport This Post
Master
Posted Hide Post
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
Client: WF 7.6.8, MR, Dashboard, Oracle, Unix.
 
Posts: 832 | Location: NYC | Registered: January 11, 2005Reply With QuoteReport This Post
Virtuoso
Posted Hide Post
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 767 on WinXP (sp2) - IE7 or IE8. Development: 769.
- Also available are versions from 714 up to 769 on Windows (XP/2000/2003EE)
 
Posts: 1154 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
Master
Posted Hide Post
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?
 
Posts: 832 | Location: NYC | Registered: January 11, 2005Reply With QuoteReport This Post
Member
Posted Hide Post
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
 
Posts: 3 | Registered: April 30, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 

IB - Developer Center    Forums  Hop To Forum Categories  WebFOCUS/FOCUS    [SOLVED] Doesn't recognize Comment or WHERE or BY clause

Copyright © 1996-2009 Information Builders, leaders in enterprise business intelligence.