Author |
Message
|
Gama |
Posted: Mon Sep 24, 2007 2:33 am Post subject: IWAA0645E: The import of the COBOL has failed |
|
|
 Centurion
Joined: 11 Jan 2005 Posts: 103 Location: Portugal
|
Hello all,
I need to create a simple Messages Ser from a COBOL, but when i try create the "Message Defenition File" from the Cobol appear the Following error:
BIP0234E Error occurred while importing file "mrm19.cpy".
The source file contains errors, details are: Possible reasons for failure:
1. Syntax errors were found in the source. Check the problem task list for the list of errors.
2. mrm19.cpy is expected to have just 01 data structures or 77 elementary data item definition(s), 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 : 5 IGYLI0049-S The "COPY" library was not found. Skipped to the period terminating the "COPY" statement.
Please correct the error and try importing the file again.
This is the simple Cobol File
01 MRM2M00.
03 SH1SIZE0.
05 SH2-A PIC X(20).
i'm using WMBToolkit 6.0.0.2
Any suggestion?
Gama |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Sep 24, 2007 3:36 am Post subject: Re: IWAA0645E: The import of the COBOL has failed |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Gama wrote: |
Line No : 5 IGYLI0049-S The "COPY" library was not found. Skipped to the period terminating the "COPY" statement.
Please correct the error and try importing the file again.
Gama |
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
EddieA |
Posted: Tue Sep 25, 2007 5:36 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Is the copy book correctly formatted. Does the 01 start in column 8. And the 03 and 05 in at least column 12. (If I've remembered my very ancient COBOL correctly).
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
shalabh1976 |
Posted: Tue Sep 25, 2007 8:57 pm Post subject: |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
Changed the file to :
Code: |
01 MRM2M00.
03 SH1SIZE0.
05 SH2-A PIC X(20).
|
Now importing correctly. _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate |
|
Back to top |
|
 |
EricCox |
Posted: Mon Aug 20, 2012 12:33 pm Post subject: The Best |
|
|
Master
Joined: 08 Apr 2011 Posts: 292
|
You guys are the best.
Is there anything describing why the hierarchy must be in column 8, 12, 14 and how those columns relate to the field definitions?
Thanks
I'm importing now, but don't understand this technical requirement. Some background would be helpful.
Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Aug 20, 2012 1:39 pm Post subject: Re: The Best |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
EricCox wrote: |
You guys are the best.
Is there anything describing why the hierarchy must be in column 8, 12, 14 and how those columns relate to the field definitions?
Thanks
I'm importing now, but don't understand this technical requirement. Some background would be helpful.
Thanks |
IIRC the indentation goes back to the time of punch cards i.e. about 30 years ago...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
EricCox |
Posted: Mon Aug 20, 2012 1:43 pm Post subject: Sorry only Reel to Reel knowledge here |
|
|
Master
Joined: 08 Apr 2011 Posts: 292
|
You've predated my experience. I only had contact with Reel to Reel. I never had to master punch cards. Seems I need to go back further into the bowels of the beginning of IBM.
I build a number of Copybook last year with this same structure and must have gotten lucky not to have fiddled with the column/hierarchy definitions and didn't run into this problem.
Thanks! |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Aug 20, 2012 1:49 pm Post subject: Re: Sorry only Reel to Reel knowledge here |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
EricCox wrote: |
You've predated my experience. I only had contact with Reel to Reel. I never had to master punch cards. Seems I need to go back further into the bowels of the beginning of IBM.
I build a number of Copybook last year with this same structure and must have gotten lucky not to have fiddled with the column/hierarchy definitions and didn't run into this problem.
Thanks! |
There's additional stuff like '*' in column 7 indicating a comment...
Don't remember what in col 78 indicating a continuation char... etc ...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 20, 2012 3:24 pm Post subject: Re: Sorry only Reel to Reel knowledge here |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
EricCox wrote: |
You've predated my experience. I only had contact with Reel to Reel. I never had to master punch cards. Seems I need to go back further into the bowels of the beginning of IBM |
Col 8 = Start of Zone A where all of the top levels must start
Col 12 = Start of Zone B where all other levels must exist
Col 73 - 80 = Used by some punches and readers to hold sequence numbers for when someone drops the deck
Col 1 - 6 = Used by you for a sequence number if you have to insert cards after the initial punching (what we in modern days call "editing")
Col 7 = Indicator, typically indicating the line's a comment.
Most COBOL don't use a continuation character but read from the start of the line until a period. This can cause confusion, frustration and jumping round the desk screaming when you've spent 3 days trying to figure out why a ridiculously deeply nested if in OS-COBOL (which you didn't write) is not working properly & notice that there's a tiny, faint spot at the end of a line about a third of the way down.
On the plus side, no-one ever let the printer run low on toner again. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|