| Author | 
		  Message
		 | 
		
		  | kiran_mvr | 
		  
		    
			  
				 Posted: Wed Aug 17, 2005 12:33 pm    Post subject: Problems with Cobol Copy Book | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 12 Dec 2004 Posts: 35
  
  | 
		  
		    
			  
				Hai,
 
 
I Have a requirement where I need to map the fields from Cobol copy book to XML.So for this I have created a message Set with Cobol Copy Book structure using 'CWF' format and I am giving the cobol copy book inputs using "rfhutil".
 
The problem is I am getting some parser errors..like
 
 
"ImbRecoverableException caught from worker ->parseNext"
 
  
 
Can anyone help me with this ?? _________________ Kiran_manny | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Wed Aug 17, 2005 12:59 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				Maybe you and nmaddisetti could compare notes. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | recallsunny | 
		  
		    
			  
				 Posted: Wed Aug 17, 2005 1:22 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Disciple
 
 Joined: 15 Jun 2005 Posts: 163 Location: Massachusetts 
  | 
		  
		    
			  
				Gotchaa!!!    | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kiran_mvr | 
		  
		    
			  
				 Posted: Wed Aug 17, 2005 1:32 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 12 Dec 2004 Posts: 35
  
  | 
		  
		    
			  
				Hai,
 
 
Ya the problem here is we are working on the same concept but we coudn't get any help from any source. _________________ Kiran_manny | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Wed Aug 17, 2005 3:04 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				
   
	| kiran_mvr wrote: | 
   
  
	Hai,
 
 
Ya the problem here is we are working on the same concept but we coudn't get any help from any source. | 
   
 
 
 
Maybe that's because neither of you posted the full exception list, the version and CSD level,  and discussed what you had actually done to debug this yourself.
 
 
The only people who have enough information to solve this problem are those people who can see the error messages.  And right now, that's only you and nmaddissetti. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kishoreraju | 
		  
		    
			  
				 Posted: Thu Aug 18, 2005 2:39 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Disciple
 
 Joined: 30 Sep 2004 Posts: 156
  
  | 
		  
		    
			  
				Kiran,
 
 
 
       Can  u check that the input that u r giving is matching with the message set structure because its a fixed wirth even a single character matters.( like when it is parsing ,if for a numaric data type  some string is assigned then it will throw that error) | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kiran_mvr | 
		  
		    
			  
				 Posted: Thu Aug 18, 2005 7:38 am    Post subject: Problem with COBOL copybook File | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 12 Dec 2004 Posts: 35
  
  | 
		  
		    
			  
				Hai,
 
 
The below is the cobol structure we are working on.We created a Message Definition File for this by Importing. But when giving the same file as an input for this structure we could'nt acess the records from CM601TDF-CANCEL-CUST-ORD-01 in the below file.We are able to acess all fields untill '05 FILLER' field.So what we have to do now ...!!.Do we need to change any  structure of the file ? I mean any changes to Physical or Logical properties?..
 
 
Can anyone help us..
 
 
*Outbound Copybook Layout.
 
      *=========================
 
      *CM601TD2
 
 
       01 CM601TD2-REC.                                                 
 
           05 CM601TD2-TRANS-SERIAL-NAR         PIC 9(9) VALUE 0.        
 
           05 CM601TD2-TRANS-NAME               PIC X(  VALUE SPACES.   
 
           05 CM601TD2-TRANS-TYPE               PIC X(2)   VALUE SPACES. 
 
           05 CM601TD2-TRANS-SITE               PIC X(3)   VALUE SPACES. 
 
           05 CM601TD2-TRANS-FORMAT-VERS        PIC XX     VALUE SPACES. 
 
           05 CM601TD2-TRANS-PROD-TEST          PIC X      VALUE SPACES. 
 
           05 CM601TD2-TRANS-DATE               PIC X(    VALUE SPACES. 
 
           05 CM601TD2-TRANS-TIME               PIC X(6)   VALUE SPACES. 
 
           05 FILLER                            PIC X(11)  VALUE SPACES. 
 
           05 CM601TD2-TRANS-DETAIL             PIC X(350) VALUE SPACES. 
 
           
 
           05 CM601TDF-CANCEL-CUST-ORD-01 REDEFINES                      
 
                                          CM601TD2-TRANS-DETAIL.         
 
              10 CM601TDF-SBS-ORD-NBR           PIC X(9).                
 
              10 FILLER                         PIC X(341).              
 
                                                                         
 
           05 CM601TDF-CANCEL-CUST-ORD-02 REDEFINES                      
 
                                          CM601TD2-TRANS-DETAIL.         
 
              10 CM601TDF-SOURCE-DC             PIC X(3).                
 
              10 CM601TDF-CUST-NAR              PIC X(10).               
 
              10 CM601TDF-ORD-LINE-NAR          PIC X(3).                
 
              10 CM601TDF-ORD-LINE-SCHED        PIC X(2).                
 
              10 CM601TDF-NAPN                  PIC X(7).                
 
              10 CM601TDF-QTY                   PIC 9(7).                
 
              10 CM601TDF-CANCEL-REASON-CD      PIC X.                   
 
              10 CM601TDF-DT-TM-LOADED          PIC X(14).               
 
              10 CM601TDF-TMS-FLAG              PIC X.                   
 
              10 CM601TDF-TMS-REBILL-FLAG       PIC X.                   
 
              10 FILLER                         PIC X(301). _________________ Kiran_manny | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Thu Aug 18, 2005 8:01 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				Surely you aren't trying to send the copybook itself through - so it's not quite the same file.
 
 
Also, you have two or more seperate elements called "FILLER".  The CopyBook import will not handle this gracefully.  I would suggest renaming them to have unique names, perhaps like CM601TD2-FILLER, and then rebuild the message set from import. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kiran_mvr | 
		  
		    
			  
				 Posted: Thu Aug 18, 2005 10:45 am    Post subject: COBOL Error | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 12 Dec 2004 Posts: 35
  
  | 
		  
		    
			  
				Jeff,
 
 
I tried as you suggested but I get the same error !!
 
 
Is there any other way? _________________ Kiran_manny | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Thu Aug 18, 2005 10:47 am    Post subject: Re: COBOL Error | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				
   
	| kiran_mvr wrote: | 
   
  
	| I tried as you suggested but I get the same error !! | 
   
 
 
 
What is the *exact* error you get? _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |