| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| Rama_Prayaga Beginner
 
  
 Joined: 20 May 2003
 Posts: 45
 Topics: 15
 
 
 | 
			
				|  Posted: Wed Dec 15, 2004 6:34 am    Post subject: How to pass high values in PL/1 |   |  
				| 
 |  
				| Hi 
 Can anyone let me know how to pass high values in PL/1 to a field name
 
 I have to pass X'FFFF' to a FIELD-NAME
 
 I tried give
 
 
  	  | Code: |  	  | DCL FIELD-NAME char (02); FIELD-NAME = X'FFFF' ;
 | 
 
 its giving a compilation error.
 
 Can anyone help me
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Wed Dec 15, 2004 8:57 am    Post subject: |   |  
				| 
 |  
				| Rama prayaga, 
 try coding
 
 
  	  | Code: |  	  | DCL FIELD-NAME CHAR VALUE('FFFF'X);
 
 | 
 
 Hope this helps...
 
 Cheers
 
 Kolusu
 _________________
 Kolusu
 www.linkedin.com/in/kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| bauer Intermediate
 
 
 Joined: 10 Oct 2003
 Posts: 317
 Topics: 50
 Location: Germany
 
 | 
			
				|  Posted: Thu Dec 16, 2004 5:43 am    Post subject: |   |  
				| 
 |  
				| Hi, 
 other solution: Use builtinfunctions LOW or HIGH to pass low / high values.
 
 
 Example:
 
 DCL FIELD CHAR(...) AUTO INIT (HIGH(CSTG(FIELD)) ;
 
 
 or
 
 FIELD = HIGH(4)
 
 
 bauer
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Rama_Prayaga Beginner
 
  
 Joined: 20 May 2003
 Posts: 45
 Topics: 15
 
 
 | 
			
				|  Posted: Fri Dec 17, 2004 9:10 am    Post subject: |   |  
				| 
 |  
				| Thanks .I used High Built-in funtions. 
 Thanks once agian,
 
 Rama prayaga
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |