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 » Cobol Copy Book Issue from V6-->V8

Post new topic  Reply to topic
 Cobol Copy Book Issue from V6-->V8 « View previous topic :: View next topic » 
Author Message
JosephBCT
PostPosted: Wed Feb 20, 2013 8:28 pm    Post subject: Cobol Copy Book Issue from V6-->V8 Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 21, 2013 4:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
JosephBCT
PostPosted: Thu Feb 21, 2013 5:58 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Feb 21, 2013 6:00 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You should be using DFDL in v8, not MRM.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 21, 2013 8:33 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
rekarm01
PostPosted: Thu Feb 21, 2013 10:21 am    Post subject: Re: Cobol Copy Book Issue from V6-->V8 Reply with quote

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
View user's profile Send private message
JosephBCT
PostPosted: Tue Feb 26, 2013 1:35 am    Post subject: Reply with quote

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
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 » Cobol Copy Book Issue from V6-->V8
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.