Unix Technical Forum

Procobol error.. please help

This is a discussion on Procobol error.. please help within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi All, I'm a newbie. I am trying to create a program to extract some entries from tables and ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 11:58 AM
attraxion
 
Posts: n/a
Default Procobol error.. please help

Hi All,

I'm a newbie. I am trying to create a program to extract some entries
from tables and load some others, using Pro*COBOL. The overall thing
seems to be all right, but on compiling I am getting a strange one I
never encountered before -

PCB-S-00400, Encountered the symbol "<end-of-source>" when expecting
one of the following:
+ - * / . & id string integer floating-point literal EXTERNAL
GLOBAL REFERENCE PICTURE USAGE BINARY COMP COMPUTATIONAL
COMPUTATIONAL-4 ........ etc etc

I STFWed but there is no description of this error anywhere on google.
The error occurs at a place where I try to include a file containing
valid values in my program. The excerpt from the list file is as
follows -

132 01 SW00-FILE-I-STATUS SYNC PIC X(2)
133 *----------------------------------------------------
134 * COPY 'filestatus.va'
135 *----------------------------------------------------
136 88 FS-FILE-STATUS-OK
Error at line 137, column 29 in file extract_art_image.pco
137 VALUE IS "00".
137 ............................1
137 PCB-S-00400, Encountered the symbol "<end-of-source>" when
expecting one of the following:
+ - * / . & id string integer floating-point literal
EXTERNAL
GLOBAL REFERENCE PICTURE USAGE BINARY COMP COMPUTATIONAL
COMPUTATIONAL-4 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-X
INDEX PACKED-DECIMAL DISPLAY POINTER DISPLAY-1 REDEFINES
PROCEDURE-POINTER OCCURS SIGN LEADING TRAILING SYNCHRONIZED
JUSTIFIED BLANK VALUE VARYING THROUGH NEXT START LENGTH AND
ALL OR

138 88 FS-CREATED-DUPLICATE-ALT-KEY
139 VALUE IS "02".
140 88 FS-RECORD-NOT-SIZE-OF-BUFFER
141 VALUE IS "04".
142 88 FS-OPTIONAL-FILE-NOT-PRESENT
143 VALUE IS "05".

Can anyone give me some pointers on why this is happening? The valid
values file is working okay with other programs.

Thanks a lot in anticipation,
Best,
Attraxion.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 11:59 AM
Ed Prochak
 
Posts: n/a
Default Re: Procobol error.. please help



On Dec 18, 1:24 am, "attraxion" <attrax...@gmail.com> wrote:
> Hi All,
>
> I'm a newbie. I am trying to create a program to extract some entries
> from tables and load some others, using Pro*COBOL. The overall thing
> seems to be all right, but on compiling I am getting a strange one I
> never encountered before -
>
> PCB-S-00400, Encountered the symbol "<end-of-source>" when expecting
> one of the following:
> + - * / . & id string integer floating-point literal EXTERNAL
> GLOBAL REFERENCE PICTURE USAGE BINARY COMP COMPUTATIONAL
> COMPUTATIONAL-4 ........ etc etc
>
> I STFWed but there is no description of this error anywhere on google.
> The error occurs at a place where I try to include a file containing
> valid values in my program. The excerpt from the list file is as
> follows -
>
> 132 01 SW00-FILE-I-STATUS SYNC PIC X(2)
> 133 *----------------------------------------------------
> 134 * COPY 'filestatus.va'
> 135 *----------------------------------------------------
> 136 88 FS-FILE-STATUS-OK
> Error at line 137, column 29 in file extract_art_image.pco
> 137 VALUE IS "00".
> 137 ............................1
> 137 PCB-S-00400, Encountered the symbol "<end-of-source>" when
> expecting one of the following:
> + - * / . & id string integer floating-point literal
> EXTERNAL
> GLOBAL REFERENCE PICTURE USAGE BINARY COMP COMPUTATIONAL
> COMPUTATIONAL-4 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-X
> INDEX PACKED-DECIMAL DISPLAY POINTER DISPLAY-1 REDEFINES
> PROCEDURE-POINTER OCCURS SIGN LEADING TRAILING SYNCHRONIZED
> JUSTIFIED BLANK VALUE VARYING THROUGH NEXT START LENGTH AND
> ALL OR
>
> 138 88 FS-CREATED-DUPLICATE-ALT-KEY
> 139 VALUE IS "02".
> 140 88 FS-RECORD-NOT-SIZE-OF-BUFFER
> 141 VALUE IS "04".
> 142 88 FS-OPTIONAL-FILE-NOT-PRESENT
> 143 VALUE IS "05".
>
> Can anyone give me some pointers on why this is happening? The valid
> values file is working okay with other programs.
>
> Thanks a lot in anticipation,
> Best,
> Attraxion.


I'm not a COBOL programmer but given the description you gave, it
sounds like a problem in the source code that does the include. The
erro couls be due to the intermingling of embedded SQL and COBOL
(improper nesting) or simply a typo. Anyway the include file would not
be my primary suspect.

HTH,
ed

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:27 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com