MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Submitting MVS commands in REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
KFORD
Beginner


Joined: 17 Sep 2004
Posts: 1
Topics: 1

PostPosted: Fri Sep 17, 2004 1:10 pm    Post subject: Submitting MVS commands in REXX Reply with quote

I would like to get a unit address of a volume by using a REXX execute. By
supplying the volume serial name I would like it to return the unit address to my screen with out going into SDSF and entering the D U,VOL=xxxxxx.

Thank YOu
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Fri Sep 17, 2004 1:26 pm    Post subject: Reply with quote

Kevin,

I am not sure what you meant by unit address, but IBM IEHLIST gives the detailed information of the volume.

Code:

//STEP0100  EXEC PGM=IEHLIST                         
//SYSPRINT  DD SYSOUT=*                             
//DDNAME1   DD UNIT=3390,VOL=SER=xxxxx,DISP=SHR   
//SYSIN     DD *                                   
      LISTVTOC  FORMAT,VOL=DISK=xxxxx                   
/*                                                 


check this link for a detailed explanation of IEHLIST

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1u104/13.0?DT=19990113105507

check this link for a sample IEHLIST VTOC Listing

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1u104/D.0?DT=19990113105507

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Fri Sep 17, 2004 2:29 pm    Post subject: Reply with quote

KFORD:

1. You can use the following example by adding ARG's and IF's.

2. You can issue SDSF commands from within REXX. Refer to the manual.

3. You can try DVOL from file 296 in CBTTAPE.

4. You can try to implement this XEPHON example.

5. Or this one.

HTH -

O.
________
Chrysler R platform history


Last edited by ofer71 on Sat Feb 05, 2011 11:19 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Fri Sep 17, 2004 2:55 pm    Post subject: Reply with quote

And of course, you can issue MVS system commands directly from REXX using ADDRESS CONSOLE.
Mr. Green
O.
________
Jeep Jeepster


Last edited by ofer71 on Sat Feb 05, 2011 11:19 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
tom_p
Beginner


Joined: 01 Jun 2004
Posts: 3
Topics: 0
Location: Melbourne

PostPosted: Sat Sep 25, 2004 9:41 am    Post subject: Reply with quote

You could also do a dcollect, post process it into flat file that just has all of the voluumes (volser, device), then in your rexx, you search for the volume in this file.
It's not efficient, but it would work.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group