Author |
Message
|
JosephBCT |
Posted: Wed Feb 20, 2013 8:28 pm Post subject: Cobol Copy Book Issue from V6-->V8 |
|
|
Novice
Joined: 07 Feb 2013 Posts: 23
|
Hi,
I am getting below error while trying to import a cobol copybook which was worked for the Version 6, now i am moving to V8. Tried to import the same cobol copy book.
BIP0234E Error occurred while importing file "cobol.cbl".
The source file contains errors, details are: Possible reasons for failure:
1. Syntax errors were found in the source. If the file is from the workspace, check the 'Problems' view for the list of errors.
2. cobol.cbl is expected to be a complete COBOL program, based on its file extension.You can change the file extension support by going into the "More COBOL options" tab of the COBOL importer preferences page (Window -> Preferences -> Importer -> COBOL).
Line No : 1 IGYDS1000-E A "IDENTIFICATION DIVISION" header was not found in this program. It was assumed present.
Line No : 1 IGYDS1003-E A "PROGRAM-ID" paragraph was not found. Program-name "CBLNAM01" was assumed.
Line No : 1 IGYDS0002-E A character other than "*", "D", "/" or "-" was found in column 7. A blank was assumed.
Line No : 1 IGYDS0027-S Non-COBOL character(s) were found starting with "_" in column 8. The characters were discarded.
Line No : 1 IGYDS0009-E "HOLDER" should not begin in area "A". It was processed as if found in area "B".
Line No : 1 IGYDS1089-S "HOLDER" was invalid. Scanning was resumed at the next area "A" item, level-number, or the start of the next clause.
Line No : 2 IGYDS0001-W A blank was missing before character "_" in column 9. A blank was assumed.
Line No : 2 IGYDS0009-E "W" should not begin in area "A". It was processed as if found in area "B".
My file is
Code: |
01 W_HOLDER.
05 W_PROCESSS.
10 FILLER PIC X(05) VALUE SPACES.
10 W_CB_NUMBER PIC X(15) VALUE SPACES.
10 CAI PIC X(06) VALUE SPACES.
10 TYPE PIC X(01) VALUE SPACES.
10 W_CB_TYPE PIC X(02) VALUE SPACES.
10 NEW_BATCH PIC X(15) VALUE SPACES. |
Here i am facing the probelm, request you to provide your support. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 21, 2013 4:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Did you try changing the extension to .cpy instead of .cbl ?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
JosephBCT |
Posted: Thu Feb 21, 2013 5:58 am Post subject: |
|
|
Novice
Joined: 07 Feb 2013 Posts: 23
|
Thanks for your reply FJB.
Yes, tried but no luck.
Even i removed the "Underscore" and import also its not through. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 21, 2013 6:00 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You should be using DFDL in v8, not MRM. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 21, 2013 8:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Apparently and looking at the other errors provided, you may have alignment problems
The "0" from the 01 level should start in col 8 and the name of the level should start in col 12.
The rest should be indented, at a level basis.
You may want to download the copy book as is from the MF, rename it to .cpy, import it in DFDL and let us know what errors you get if any...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
rekarm01 |
Posted: Thu Feb 21, 2013 10:21 am Post subject: Re: Cobol Copy Book Issue from V6-->V8 |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
JosephBCT wrote: |
My file is
Code: |
01 W_HOLDER.
05 W_PROCESSS.
10 FILLER PIC X(05) VALUE SPACES.
10 W_CB_NUMBER PIC X(15) VALUE SPACES.
10 CAI PIC X(06) VALUE SPACES.
10 TYPE PIC X(01) VALUE SPACES.
10 W_CB_TYPE PIC X(02) VALUE SPACES.
10 NEW_BATCH PIC X(15) VALUE SPACES. |
|
This file (as posted) has a few tab characters intermixed among the space characters. That may (or may not) be a problem, but it doesn't seem like a good idea for column-dependent COBOL copybooks. Here's what it looks like, replacing space with '-' and tab with '*':
Code: |
-------01--W_HOLDER.------------------
----------05--W_PROCESSS.
-------------10-FILLER------------PIC-X(05)----VALUE-SPACES.-
-------------10-W_CB_NUMBER-------PIC-X(15)-----VALUE-SPACES.
-------------10-CAI---------------PIC-X(06)-----VALUE-SPACES.
------*-----10-TYPE--------------PIC-X(01)-----VALUE-SPACES.-
-------------10-W_CB_TYPE---------PIC-X(02)-----VALUE-SPACES.
-------*-----10-NEW_BATCH---------PIC-X(15)-----VALUE-SPACES.- |
|
|
Back to top |
|
 |
JosephBCT |
Posted: Tue Feb 26, 2013 1:35 am Post subject: |
|
|
Novice
Joined: 07 Feb 2013 Posts: 23
|
Thanks to one and one.
I just copied the .cbl file and paste in to the message flow project, and double click the cobol copy book file.
Its open the editor window with errors.
I just removed the spaces and aligned the file. Now its working fine. |
|
Back to top |
|
 |
|