From: Random Programmer on
Hi guys. Following some advice I got to keep the "Implicit none"
statement in my programs, I've found that it conflicts with the
"systemqq" command.

The error I get is:

Error: This name does not have a type, and must have an explicit type.
[SYSTEMQQ]
result = systemqq('test')

Commenting out the "Implicit None" stops the error from occuring. What
causes this and how do I avoid it?

Thanks.

From: Lynn McGuire on
> Error: This name does not have a type, and must have an explicit type.
> [SYSTEMQQ]
> result = systemqq('test')
>
> Commenting out the "Implicit None" stops the error from occuring. What
> causes this and how do I avoid it?

Just declare a type for systemqq, like:

integer systemqq
external systemqq

Lynn


From: Duane Bozarth on
Random Programmer wrote:
>
> Hi guys. Following some advice I got to keep the "Implicit none"
> statement in my programs, I've found that it conflicts with the
> "systemqq" command.
>
> The error I get is:
>
> Error: This name does not have a type, and must have an explicit type.
> [SYSTEMQQ]
> result = systemqq('test')
>
> Commenting out the "Implicit None" stops the error from occuring. What
> causes this and how do I avoid it?
>

systemqq is a CVF-supplied routine. It appears you have referenced it
w/o including the

USE DFLIB

line per the documentation. That module includes the necessary
declaration for the routine. Lynn's suggestion will eliminate the error
message but won't provide the interface as USEing the module will...
From: Duane Bozarth on
Lynn McGuire wrote:
>
> > Error: This name does not have a type, and must have an explicit type.
> > [SYSTEMQQ]
> > result = systemqq('test')
> >
> > Commenting out the "Implicit None" stops the error from occuring. What
> > causes this and how do I avoid it?
>
> Just declare a type for systemqq, like:
>
> integer systemqq
> external systemqq

systemqq() actually returns a logical, but unless you have CVF there's
no reason you would know that... :)

"USE DFLIB" will include the necessry information.
From: Random Programmer on
Thanks guys :-)

"logical systemqq" worked.

About the "use dflib" line, where in the code do I put it? Sounds like
a dumb question but I did look up "use".

Error: This USE statement is not positioned correctly within the
scoping unit.
use dflib