Page 1 of 1

getting the result of a SDSF command

PostPosted: Tue Nov 27, 2018 1:57 pm
by samb01
Hello everybody.
I have this commande in SDSF to get the volume list of a storage group :

getting this result in a file


/D SMS,SG(storage_group),listvol
 


I 'd like like to get the result in a dataset (by JCl) like this :


*************************
DGRXX1                  
DGRXX2                  
DGRXX3                  
DGRXX4                  
DGRXX5                  
DGRXX6                  
DGRXX7                  
DGRXX8                  
DGRXX9                  

 


Thank's for your help.

Re: getting the result of a SDSF command

PostPosted: Tue Nov 27, 2018 2:38 pm
by expat
Then execute the command in batch. There should be lots of examples of SDSF in batch on the web, or even other ways of doing it.

Re: getting the result of a SDSF command

PostPosted: Tue Nov 27, 2018 3:41 pm
by willy jensen
this REXX sample works for me:
/* rexx sdsfcmd */                          
command='$d proclib'                        
if isfcalls('ON') <> 0 then exit  99        
address SDSF "ISFEXEC '/"command"'  (WAIT"  
do i=1 to  isfulog.0                        
  say  '>'strip(isfulog.i,'b')              
end                                        
call isfcalls  'OFF'                        

Re: getting the result of a SDSF command

PostPosted: Tue Nov 27, 2018 4:00 pm
by samb01
It works!
Thank's willy :D