|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  Microfocus cobol compiler | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | vandana | 
		  
		    
			  
				 Posted: Tue Jan 08, 2002 12:07 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Acolyte
 
 Joined: 01 Dec 2001 Posts: 74
  
  | 
		  
		    
			  
				
 
 
Which compiler should I use  so that the sample programs given with MQSeries work without any problems??
 
I get compilation errors in 2 copy books when i try to compile the sample cobol program amqs0put10.cbl.I have MQSeries v5.2 installed on nt 4.0.
 
 
Thanks and  Regards,
 
Vandana
 
 | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | StefanSievert | 
		  
		    
			  
				 Posted: Tue Jan 08, 2002 1:53 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Partisan
 
 Joined: 28 Oct 2001 Posts: 333 Location: San Francisco 
  | 
		  
		    
			  
				Vandana,
 
I have sucessfully used Microfocus Cobol on NT to compile MQ applications. What are the errors you receive, can you please provide more details?
 
Cheers,
 
Stefan
 
 _________________ Stefan Sievert
 
IBM Certified * WebSphere MQ | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | vandana | 
		  
		    
			  
				 Posted: Tue Jan 08, 2002 10:02 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Acolyte
 
 Joined: 01 Dec 2001 Posts: 74
  
  | 
		  
		    
			  
				Hi,
 
  Thanks a lot.
 
  I've been hunting for the answer since a very long time.
 
i tried compiling the amq0put0.cbl. 
 
using Micro Focus COBOL/2 Version 1.1.0 L2.0 
 
compiler. 
 
i get the following compilation error. 
 
i verified that these four variables were 
 
declared in the following copy books. 
 
 
1)CMQODV.CPY 
 
2)CMQPMOV.CPY. 
 
 
 1608   15 MQOD-OBJECTRECPTR        POINTER VALUE NULL.
 
* 44-S************************************************
 
*    Literal expected
 
 1610   15 MQOD-RESPONSERECPTR      POINTER VALUE NULL.
 
* 44-S************************************************
 
*    Literal expected
 
 1779   15 MQPMO-PUTMSGRECPTR      POINTER VALUE NULL.
 
* 44-S***********************************************
 
*    Literal expected
 
 1781   15 MQPMO-RESPONSERECPTR    POINTER VALUE NULL.
 
* 44-S***********************************************
 
*    Literal expected
 
Then i removed VALUE NULL and just kept the declaration as 
 
POINTER(for the four variables )in the copy books.
 
 
I've copied  all the copy books and the library files
 
in the same path as that of the cbl files so that the problem
 
of path of copy books and library files does not arise.
 
 
Then I compiled the program using the following command
 
cobol amq0put0;
 
The compilation now worked fine.
 
 
Then I linked the program using the following command
 
link  amq0put0.obj;mqmcb32
 
 
 
 
The exe file gets generated and when i run it,
 
it asks me the Name of the target Queue but further 
 
stops when the MQConn statement is encountered.
 
The following is the error I get.
 
 
D:MQSeriestoolscobolsamples>amq0put0
 
AMQ0PUT0 start
 
Please enter the name of the target queue
 
Queue1
 
 
 
Failed to find program MQCONN.EXE
 
Run time error number: 173 
 
What could be the reason? 
 
 
 
Thanks and Regards, 
 
Vandana 
 
 
 
 | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | bower5932 | 
		  
		    
			  
				 Posted: Thu Jan 17, 2002 2:12 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Jedi Knight
 
 Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA 
  | 
		  
		    
			  
				Vandana,
 
 
Try adding LITLINK to your compile statment:
 
 
cobol amq0put0 LITLINK
 
 
I found an internal problem that was similar to yours and was resolved with the LITLINK.
 
 
Ron Bower | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | vandana | 
		  
		    
			  
				 Posted: Tue Feb 05, 2002 8:01 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Acolyte
 
 Joined: 01 Dec 2001 Posts: 74
  
  | 
		  
		    
			  
				Hi ,
 
  i did compile it using LITLINK.
 
but i don't have cblink.exe
 
so if i link using link.exe specifying 
 
the appropriate lib i.e
 
 
link amq0put0 ;mqmcb32.lib
 
 
but then  i get a runtime error.
 
 
but i gives me the following error. 
 
 
Microsoft (R) Segmented-Executable Linker Version 5.02.05 
 
Copyright (C) Microsoft Corp 1984-1988. All rights reserved. 
 
 
 
AMQ0PUT0.OBJ(AMQ0PUT0) : error L2029 : 'MQOPE' : unresolved external 
 
AMQ0PUT0.OBJ(AMQ0PUT0) : error L2029 : 'MQPU' : unresolved external 
 
AMQ0PUT0.OBJ(AMQ0PUT0) : error L2029 : 'MQDIS' : unresolved external 
 
AMQ0PUT0.OBJ(AMQ0PUT0) : error L2029 : 'MQCON' : unresolved external 
 
AMQ0PUT0.OBJ(AMQ0PUT0) : error L2029 : 'MQCLOS' : unresolved external 
 
 
so i had to proceec compiling
 
without teh LITLINK option.
 
 
perhaps there is some variation 
 
in the compiler that i'm using.
 
 
 
 
 
_________________
 
 
 
[ This Message was edited by: vandana on 2002-02-05 20:02 ]
 
 
[ This Message was edited by: vandana on 2002-02-05 20:05 ] | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | 
		    
		   | 
		 
	   
	 | 
   
 
  
	     | 
	 | 
	Page 1 of 1 | 
   
 
 
 
  
  	
	  
		
		  
 
  | 
		  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
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |