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

Re: Problems w/ CBL_* Routines On NFS Mounts
I have run into the same problem.  I will post what I find.  Does anyone
have the definition for the 14605 return code?

Jason


Report this thread to moderator Post Follow-up to this message
Old Post
Jason_Thomas
09-01-04 08:55 AM


Re: Problems w/ CBL_* Routines On NFS Mounts
I am not sure if my problem is the same as yours except for the error code
14605.

What I did was place a " around each file name.

STRING """           DELIMITED BY SIZE
WS-INPUT-PATH DELIMITED BY SPACE
WS-FILE-NAME  DELIMITED BY "   "
"""           DELIMITED BY SIZE
INTO WS-CBL-FILE-NAME-1

STRING """           DELIMITED BY SIZE
WS-OUTPUT-PATH DELIMITED BY SPACE
WS-FILE-NAME  DELIMITED BY "   "
"""           DELIMITED BY SIZE
INTO WS-CBL-FILE-NAME-2

CALL "CBL_COPY_FILE" USING WS-CBL-FILE-NAME-1
WS-CBL-FILE-NAME-2
RETURNING WS-CBL-RETURN-STATUS.


Hope this helps.

-Jason




Report this thread to moderator Post Follow-up to this message
Old Post
Jason_Thomas
09-01-04 08:55 AM


Re: Problems w/ CBL_* Routines On NFS Mounts
I am not sure if my problem is the same as yours except for the error code
14605.

What I did was place a " around each file name.

STRING """           DELIMITED BY SIZE
WS-INPUT-PATH DELIMITED BY SPACE
WS-FILE-NAME  DELIMITED BY "   "
"""           DELIMITED BY SIZE
INTO WS-CBL-FILE-NAME-1

STRING """           DELIMITED BY SIZE
WS-OUTPUT-PATH DELIMITED BY SPACE
WS-FILE-NAME  DELIMITED BY "   "
"""           DELIMITED BY SIZE
INTO WS-CBL-FILE-NAME-2

CALL "CBL_COPY_FILE" USING WS-CBL-FILE-NAME-1
WS-CBL-FILE-NAME-2
RETURNING WS-CBL-RETURN-STATUS.


Hope this helps.

-Jason




Report this thread to moderator Post Follow-up to this message
Old Post
Jason_Thomas
09-01-04 08:55 AM


Re: Problems w/ CBL_* Routines On NFS Mounts
When I have looked up return codes I have never been able to determine what
a specific code means.  The only thing I could find out was that anything
other than a "00" return code is a problem.

I have checked the microfocus web site and on the internet and have never
found a listing of the return codes.

"Jason_Thomas" <jthomas@medata.com> wrote in message
 news:97891f2a1e9389cd8d597da17e7eba49@lo
calhost.talkaboutprogramming.com...
> I have run into the same problem.  I will post what I find.  Does anyone
> have the definition for the 14605 return code?
>
> Jason
>



Report this thread to moderator Post Follow-up to this message
Old Post
Charles W. Cribbs II
09-01-04 08:55 AM


Re: Problems w/ CBL_* Routines On NFS Mounts
I don't know if this will help or not, but at:
http://supportline.microfocus.com/s...ndx
.htm

under the topic

"Interpreting the return code as a file status code"

it says,

"If any of the routines

CBL_CHECK_FILE_EXIST
CBL_COPY_FILE
CBL_CREATE_FILE
CBL_DELETE_FILE
CBL_OPEN_FILE
CBL_READ_FILE
CBL_RENAME_FILE
CBL_WRITE_FILE
CBL_CHANGE_DIR
CBL_CREATE_DIR
CBL_DELETE_DIR
CBL_READ_DIR

fails, the RETURN-CODE register contains a file status value indicating the
failure. This file status is always the standard ANSI'74 file status value. 
If
no ANSI'74 file status is defined for the error, an extended file status is
returned (9/nnn where nnn is the run-time system error number).

You should, therefore, use RETURN-CODE and not a RETURNING clause. If
RETURN-CODE is non-zero after calling one of these routines, you must proces
s it
as a file status, for example:
01 file-status      pic xx comp-x.
01 redefines file-status.
03 fs-byte-1  pic x.
03 fs-byte-2  cblt-x1-compx
. . .
call "CBL_xxx_xxx" using parameters
if return-code not = 0
move return-code to file-status
. . .
At this point fs-byte-1 contains "9" and fs-byte-2 contains the run-time sys
tem
error number."



--
Bill Klein
wmklein <at> ix.netcom.com
"Jason_Thomas" <jthomas@medata.com> wrote in message
 news:97891f2a1e9389cd8d597da17e7eba49@lo
calhost.talkaboutprogramming.com...
>I have run into the same problem.  I will post what I find.  Does anyone
> have the definition for the 14605 return code?
>
> Jason
>



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
09-01-04 08: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 04:59 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.