| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| misi01 Advanced
 
 
 Joined: 02 Dec 2002
 Posts: 629
 Topics: 176
 Location: Stockholm, Sweden
 
 | 
			
				|  Posted: Fri Mar 11, 2016 4:53 am    Post subject: Retrieving the name of a PDS member chosen when using VIEW |   |  
				| 
 |  
				| If I run the command 
  	  | Code: |  	  | address ISPEXEC "view dataset('"tempdsn"') macro("macroname") ",
 "parm(temp)"
 
 | 
 and tempdsn contains, say PLAS.COBOL, then ISPF will present me with a list of members in the PDS and allow mt to choose a specific one to run the macroname against. Fine (and neat).
 
 My question is, is there any "hidden" method of retrieving the name of the member chosen after VIEW is finished ?
 _________________
 Michael
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| misi01 Advanced
 
 
 Joined: 02 Dec 2002
 Posts: 629
 Topics: 176
 Location: Stockholm, Sweden
 
 | 
			
				|  Posted: Fri Mar 11, 2016 5:13 am    Post subject: |   |  
				| 
 |  
				| It occurred to me that I could (in the first macro run) do a VPUT on the member name and then VGET it before running the second macro, but I would have thought the selected member's name is saved somewhere ? _________________
 Michael
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |