Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

PCO and CBL programs called from an executable
I have a oits.exe file that calls the oits.cbl program and oidriver.pco
program.  I am working on a web report and the when ran both in Unix
and in the browser, it hangs.  After making some changes and trying to
fix it, then I started getting this illegal name error.  The output
error is

I/O error : file ''
error code: 9/004 (ANS74), pc=2FA, call=1, seg=0
4     Illegal file name

Without putting the code in this email, what type of statement would
generate this error?  ie, a CALL or MOVE.  What section?  I put in
several DISPLAY statements before the error to verify if they were
running and at which point in the Procedure Division section.  Any help
or guidance in the right direction is greatly appreciated.


Report this thread to moderator Post Follow-up to this message
Old Post
Phillip.Small@gmail.com
03-12-05 08:55 AM


Re: PCO and CBL programs called from an executable
The error is almost certainly on a COBOL "OPEN" statement.

My *guess* is that the specific run-time is set up to (or only can) handle
"traditional" 8.3 file names (with no special characters) and the file name 
that
was "fed" to it (don't ask me how) didn't conform to this - or the path leng
th
was too long for this system to handle.

--
Bill Klein
wmklein <at> ix.netcom.com
<Phillip.Small@gmail.com> wrote in message
news:1110405148.479058.193180@z14g2000cwz.googlegroups.com...
>I have a oits.exe file that calls the oits.cbl program and oidriver.pco
> program.  I am working on a web report and the when ran both in Unix
> and in the browser, it hangs.  After making some changes and trying to
> fix it, then I started getting this illegal name error.  The output
> error is
>
> I/O error : file ''
> error code: 9/004 (ANS74), pc=2FA, call=1, seg=0
>  4     Illegal file name
>
> Without putting the code in this email, what type of statement would
> generate this error?  ie, a CALL or MOVE.  What section?  I put in
> several DISPLAY statements before the error to verify if they were
> running and at which point in the Procedure Division section.  Any help
> or guidance in the right direction is greatly appreciated.
>



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
03-12-05 08:55 AM


Re: PCO and CBL programs called from an executable
Hi.

You've not said which COBOL product you're using here. Regardless of
which product is involved debugging the application would highlight
exactly which statement is showing up the problem, and, indeed, the
filename which is causing the error to occur.

*If* you're using a Micro Focus product, then you can access the product
documentation via the SupportLine site at
http://supportline.microfocus.com -- you require a valid maintenance
contract to get access to this site --  under Self Service, click
Documentation, and follow the links. For reference, the description for
RTS004 is :

"A file-name contains an illegal character. This could be any character
that is not part of the permitted character set or it could be the
system-dependent delimiter, which on most systems is the space."

(apologies if you're not using a Micro Focus product!).

Hope this helps.

SimonT.

Report this thread to moderator Post Follow-up to this message
Old Post
Wiggy
03-12-05 08:55 AM


Re: PCO and CBL programs called from an executable
Wiggy wrote:
> Hi.
>
> You've not said which COBOL product you're using here. Regardless of
> which product is involved debugging the application would highlight
> exactly which statement is showing up the problem, and, indeed, the
> filename which is causing the error to occur.
>
> *If* you're using a Micro Focus product, then you can access the product
> documentation via the SupportLine site at
> http://supportline.microfocus.com -- you require a valid maintenance
> contract to get access to this site --  under Self Service, click
> Documentation, and follow the links. For reference, the description for
> RTS004 is :
>
> "A file-name contains an illegal character. This could be any character
> that is not part of the permitted character set or it could be the
> system-dependent delimiter, which on most systems is the space."
>
> (apologies if you're not using a Micro Focus product!).
>
> Hope this helps.
>


Hello Wiggy, (I like that moniker :-) )

I didn't jump in because I think he was using Unix. And assuming M/F I'm
guessing he would be getting a 9/xx and translating, using your
extensions to ANSI, giving him the 004. As a thought, and you would
know. Can you have trouble with 'spacey' pathnames/filenames with Unix ?

Example "\Corrosion-Testing\Data\Myfilename.dat"

I've deliberately got the joining hyphen in there to avoid what I knew
could be a potential problem some years back. (I think the
obliques/slashes are right-leaning, rather than left-leaning for Unix
systems ?)

OK, so you've got to sell product Simon, but if he uses this one, can't
he get in for free :-)

http://www.cobolportal.com/microfoc...m/agreement.asp

Jimmy

Report this thread to moderator Post Follow-up to this message
Old Post
James J. Gavan
03-12-05 08:55 AM


Re: PCO and CBL programs called from an executable
> Hello Wiggy, (I like that moniker :-) )

That stems from my days with long hair...

> I didn't jump in because I think he was using Unix. And assuming M/F I'm
> guessing he would be getting a 9/xx and translating, using your extensions
> to ANSI, giving him the 004. As a thought, and you would know. Can you
> have trouble with 'spacey' pathnames/filenames with Unix ?
>
> Example "\Corrosion-Testing\Data\Myfilename.dat"
>
> I've deliberately got the joining hyphen in there to avoid what I knew
> could be a potential problem some years back. (I think the
> obliques/slashes are right-leaning, rather than left-leaning for Unix
> systems ?)

No, we don't support spacey filenames within our Server Express product,
and yes, on UNIX, directory delimiters are forward slashes.

> OK, so you've got to sell product Simon, but if he uses this one, can't he
> get in for free :-)
>
> http://www.cobolportal.com/microfoc...m/agreement.asp

I wasn't trying to sell anything actually, though posting on the forum is
always good advice on Micro Focus-related issues.

That and a post from you wouldn't be the same without mentioning it. :-) .

SimonT.



Report this thread to moderator Post Follow-up to this message
Old Post
Simon Tobias
03-15-05 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:20 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.