| Author | 
		  Message
		 | 
		
		  | Fannyfcwong | 
		  
		    
			  
				 Posted: Thu Dec 12, 2002 5:18 pm    Post subject: How to convert UTF-8 from PC to EBCDIC in Mainframe? | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 04 Jul 2002 Posts: 13
  
  | 
		  
		    
			  
				| Do anyone know how can I convert UTF-8 from PC to EBCDIC in Mainframe where Mainframe runs on MQSeries V2.1? Is it possible? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | nirmala | 
		  
		    
			  
				 Posted: Thu Dec 12, 2002 11:08 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 08 Oct 2002 Posts: 20
  
  | 
		  
		    
			  
				It should get automatically converted if u use the CONVERT option in the MQGMO and then try using the getting the message.
 
 
I have worked across NT and Mainframe, and didnt have to use anything other than this. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | udaybho | 
		  
		    
			  
				 Posted: Fri Dec 13, 2002 6:50 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 09 May 2002 Posts: 94 Location: Chicago 
  | 
		  
		    
			  
				What Nirmala said is true if you have message with text Body. If your message body contains Decimals and Integers then you have to use other mechanism.
 
 
In past I had used IBM Record Library or MQSI to do this type of conversion.
 
 
Uday Bhosle | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | pgorak | 
		  
		    
			  
				 Posted: Fri Dec 13, 2002 7:01 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Disciple
 
 Joined: 15 Jul 2002 Posts: 158 Location: Cracow, Poland 
  | 
		  
		    
			  
				Perhaps this is not your case, but: if your messages contain RFH2 folders they will not get converted. I send messages containing RFH2 folders from UNIX to mainframe and the folders must be converted manually (unless I'm missing something).
 
 
Piotr | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | udaybho | 
		  
		    
			  
				 Posted: Fri Dec 13, 2002 9:04 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 09 May 2002 Posts: 94 Location: Chicago 
  | 
		  
		    
			  
				| Piotr, you have to make sure that you have proper encoding in all Headers. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | pgorak | 
		  
		    
			  
				 Posted: Mon Dec 16, 2002 2:11 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Disciple
 
 Joined: 15 Jul 2002 Posts: 158 Location: Cracow, Poland 
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	| Piotr, you have to make sure that you have proper encoding in all Headers. | 
   
 
 
 
Do you mean it is possible to have MQRFH2 folders' content automatically converted by sender channel?
 
 
Piotr | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | udaybho | 
		  
		    
			  
				 Posted: Mon Dec 16, 2002 6:44 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 09 May 2002 Posts: 94 Location: Chicago 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | pgorak | 
		  
		    
			  
				 Posted: Wed Dec 18, 2002 3:10 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Disciple
 
 Joined: 15 Jul 2002 Posts: 158 Location: Cracow, Poland 
  | 
		  
		    
			  
				So is there a general rule that says when conversion occurs and when it doesn't? What I can gather from documentation is only that once you retrieve a message you can rely on CCSIDs in each header, but "each part of a message may or may not be converted".
 
 
Let's say we have the following message:
 
 
MQMD:
 
CodedCharSetId=912
 
Format=MQRFH2
 
Encoding=273
 
 
MQRFH2:
 
CodedCharSetId=912
 
NameValueCCSID=1208
 
Format=MQSTR
 
Encoding=273
 
 
Assuming we have some MQRFH2 folders (1208) and some text (912) after MQRFH2 header, what rules does MQSeries follow to convert each part, when such a message is sent to mainframe?
 
 
Piotr | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |