| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| gildan2020 Beginner
 
 
 Joined: 07 Dec 2006
 Posts: 17
 Topics: 8
 
 
 | 
			
				|  Posted: Tue Jan 22, 2008 7:01 pm    Post subject: assign value to variable in SET command |   |  
				| 
 |  
				| Hi there, 
 I have a scenario here that is a bit complicated.
 
 How can I retrieve the contents of a file and assign it as a variable value?
 
 Say I have file AAA containing value "01", I would like to assign it to a SET command as...
 
 Pls take note that the file AAA's content changes all the time, it could be any number. Any ideas?
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| vkphani Intermediate
 
  
 Joined: 05 Sep 2003
 Posts: 483
 Topics: 48
 
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| gildan2020 Beginner
 
 
 Joined: 07 Dec 2006
 Posts: 17
 Topics: 8
 
 
 | 
			
				|  Posted: Wed Jan 23, 2008 2:18 am    Post subject: |   |  
				| 
 |  
				| 
 Thanks for your reply, but the file is not a PDS. It's a sequential dataset.
 I can't use PROCLIB JCLLIB ORDER for this.
 
 Any ideas?
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| CraigG Intermediate
 
 
 Joined: 02 May 2007
 Posts: 202
 Topics: 0
 Location: Viginia, USA
 
 | 
			
				|  Posted: Wed Jan 23, 2008 7:32 am    Post subject: |   |  
				| 
 |  
				| The symbolic substitution in JCL is completed before the job starts. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Nic Clouston Advanced
 
 
 Joined: 01 Feb 2007
 Posts: 1075
 Topics: 7
 Location: At Home
 
 | 
			
				|  Posted: Wed Jan 23, 2008 7:33 am    Post subject: |   |  
				| 
 |  
				| read your file and retrieve the data read the jcl and assign the data into the correct place in your jcl
 write the jcl out to the internal reader
 
 This has been discussed many times
 A search on internal reader should give you an idea
 _________________
 Utility and Program control cards are NOT, repeat NOT, JCL.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |