ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IWAA0645E: The import of the COBOL has failed

Post new topic  Reply to topic
 IWAA0645E: The import of the COBOL has failed « View previous topic :: View next topic » 
Author Message
Gama
PostPosted: Mon Sep 24, 2007 2:33 am    Post subject: IWAA0645E: The import of the COBOL has failed Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Sep 24, 2007 3:36 am    Post subject: Re: IWAA0645E: The import of the COBOL has failed Reply with quote

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
View user's profile Send private message Send e-mail
EddieA
PostPosted: Tue Sep 25, 2007 5:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
shalabh1976
PostPosted: Tue Sep 25, 2007 8:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
EricCox
PostPosted: Mon Aug 20, 2012 12:33 pm    Post subject: The Best Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 20, 2012 1:39 pm    Post subject: Re: The Best Reply with quote

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
View user's profile Send private message Send e-mail
EricCox
PostPosted: Mon Aug 20, 2012 1:43 pm    Post subject: Sorry only Reel to Reel knowledge here Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 20, 2012 1:49 pm    Post subject: Re: Sorry only Reel to Reel knowledge here Reply with quote

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
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Aug 20, 2012 3:24 pm    Post subject: Re: Sorry only Reel to Reel knowledge here Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IWAA0645E: The import of the COBOL has failed
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.