getting the result of a SDSF command



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

getting the result of a SDSF command

Postby samb01 » Tue Nov 27, 2018 1:57 pm

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.
samb01
 
Posts: 336
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: getting the result of a SDSF command

 

Re: getting the result of a SDSF command

Postby expat » Tue Nov 27, 2018 2:38 pm

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.
expat
 
Posts: 453
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: getting the result of a SDSF command

Postby willy jensen » Tue Nov 27, 2018 3:41 pm

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'                        
willy jensen
 
Posts: 231
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 33 times

Re: getting the result of a SDSF command

Postby samb01 » Tue Nov 27, 2018 4:00 pm

It works!
Thank's willy :D
samb01
 
Posts: 336
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post