Re: Last update date/time of a minidisk

2006-06-29 Thread Phil Smith III
Rob van der Heij [EMAIL PROTECTED] wrote:
When the FST on the CMS disk is written, the timestamp in the
directory is updated. Even when you just access a R/W disk, CMS
already writes back the FST (that's what triggers the non-shared S/Y
stat in the SYSPROF). You can use the mdiskblk stage to get block 3
and then 4 or 5 for the date.
I can code an example if you need that. Used to have a pipeline stage
that would re-access the disk and pull unseen records from the PROP
logging (like tail -f in Linux).

A minor correction (Rob knows this, he stated it correctly in a later post, but 
I want to clarify):

The timestamp in the directory is updated by RELEASE, not ACCESS.  So if you 
accidentally ACCESS a disk R/O, you can do one of three things:

1) RELEASE it, updating the timestamp;
2) DETACH (or reDEFINE) it, thus moving it before CMS can update the timestamp 
and causing an implicit RELEASE (due to the machine check);
3) ACCESSing another disk over it -- for example, if you have 0190 R/W as C, 
ACCESS 19E C.

(2) and (3) above both avoid the timestamp update (OK, to be 100% correct, I 
haven't verified that (3) does these days, but I'd be surprised if CMS is fancy 
enough to do otherwise).

...phsiii


Re: DB2 VM Deleted DBSPACES marked with NOT symbol

2006-06-29 Thread Roland P. Chung
Hi Steve, I do not do too much in the Windows environment. I know of some customers are using the WindowsODBC supportin Excel via DB2/Connect to get access to DB2/VSEVM database servers. DB2/VSEVM provides a set of CLI Stored Procedures to supportODBC.It works not too badly.If you are getting various user id errors whenyou aretrying to access table data then you may want to look at what the user ID your Windows applicationis passing. Onceyou have connected to your DB2/VM database from Windows, issue a SHOW CONNECT to find out the SQLID your Windows user is using. Tha may give you a clue. Make sure the SQLID is authorized to access the targettable.  Sorry, can't provide much help.Regards,   
 ...RolandSteve_Domarski/[EMAIL PROTECTED] wrote:  Roland, While I got your attention. Do you know of a ODBC driver or ADO.NETpackage that will communicate with VM/DB2 from a Windows .NET application.I've been to Direct Connect and can connect to VM but I get various user iderrors when I try to access table data.Steve Domarski 352-368-8350Property Appraisers Office Marion County Florida USAWith best regards,...Roland ChungSenior Technical Specialist (S/390,VM/VSE,DB2/VSEVM)MAXC Consultants Inc.Voice/Fax: 416-469-3280 (If busy, call: 416-469-2268)197 Hastings Ave., Toronto, Ontario, Canada. M4L 2L6** Life is short. Stop once in a while and smell the roses. **

Define MDisk Question

2006-06-29 Thread Mary Anne Link
First, apologies as I am a VM newbie. (And a linux newbie, for that 
matter). 

We would like to be able to add dasd to a linux's logical volume group on
 
the fly. We have been able to do this by making sure all our dasd is onli
ne 
at ipl, then we det the dev from system, att it to our userid, format it,
 
att it back to system and then do a define mdisk from the linux vm userid
. 
We then add it to user direct for the next time the linux user logs off a
nd 
back on. 
The trouble with this is, the linux guest must have A priveledge and 

devmaint, which is undesirable. Does anyone know of a way around this? 

Ideally, what I'd like is the ability to specify a userid on the define 

mdisk, so that another ID could do it for the linux guest. As I see it, w
e 
either use devmaint or have to logoff/on the guest. 
 
Any thoughts or suggestions would be appreciated. 

Regards, 
Mary Anne


Re: Define MDisk Question

2006-06-29 Thread Jim Vincent
Your steps are spot-on except for one small part.  You do not have to let
the linux guest do a DEFINE MDISK nor have class A.   Simply add the MDISK
entry to the directory and then on the linux guest, do a CP LINK * cuu cuu
MR to get access to it.   Make sense?

In fact, there is a good paper on limiting the privilege class and commands
allowed for a linux guest.  It is a good read and gives some excellent
ideas on how to protect a linux guest from shooting itself in the foot.

___
James Vincent
Systems Engineering Consultant
Nationwide Services Co., Technology Solutions
Mainframe, z/VM and z/Linux Support
One Nationwide Plaza  3-20-13
Columbus OH 43215-2220   U.S.A
Voice: (614) 249-5547Fax: (614) 677-7681
mailto:[EMAIL PROTECTED]


The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU wrote on 06/29/2006
10:00:41 AM:

 IBMVM@LISTSERV.UARK.EDU

 First, apologies as I am a VM newbie. (And a linux newbie, for that
 matter).

 We would like to be able to add dasd to a linux's logical volume group on

 the fly. We have been able to do this by making sure all our dasd is
online
 at ipl, then we det the dev from system, att it to our userid, format it,

 att it back to system and then do a define mdisk from the linux vm
userid.
 We then add it to user direct for the next time the linux user logs off
and
 back on.
 The trouble with this is, the linux guest must have A priveledge and
 devmaint, which is undesirable. Does anyone know of a way around this?
 Ideally, what I'd like is the ability to specify a userid on the define
 mdisk, so that another ID could do it for the linux guest. As I see it,
we
 either use devmaint or have to logoff/on the guest.

 Any thoughts or suggestions would be appreciated.

 Regards,
 Mary Anne


Re: Define MDisk Question

2006-06-29 Thread Stracka, James (GTI)
Why do you specify MR when you really mean M or W?

-Original Message-
From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Vincent
Sent: Thursday, June 29, 2006 10:08 AM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: Define MDisk Question


Your steps are spot-on except for one small part.  You do not have to
let
the linux guest do a DEFINE MDISK nor have class A.   Simply add the
MDISK
entry to the directory and then on the linux guest, do a CP LINK * cuu
cuu
MR to get access to it.   Make sense?

In fact, there is a good paper on limiting the privilege class and
commands allowed for a linux guest.  It is a good read and gives some
excellent ideas on how to protect a linux guest from shooting itself in
the foot.

___
James Vincent
Systems Engineering Consultant
Nationwide Services Co., Technology Solutions
Mainframe, z/VM and z/Linux Support
One Nationwide Plaza  3-20-13
Columbus OH 43215-2220   U.S.A
Voice: (614) 249-5547Fax: (614) 677-7681
mailto:[EMAIL PROTECTED]


The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU wrote on
06/29/2006 10:00:41 AM:

 IBMVM@LISTSERV.UARK.EDU

 First, apologies as I am a VM newbie. (And a linux newbie, for that 
 matter).

 We would like to be able to add dasd to a linux's logical volume group

 on

 the fly. We have been able to do this by making sure all our dasd is
online
 at ipl, then we det the dev from system, att it to our userid, format 
 it,

 att it back to system and then do a define mdisk from the linux vm
userid.
 We then add it to user direct for the next time the linux user logs 
 off
and
 back on.
 The trouble with this is, the linux guest must have A priveledge and

 devmaint, which is undesirable. Does anyone know of a way around this?

 Ideally, what I'd like is the ability to specify a userid on the 
 define mdisk, so that another ID could do it for the linux guest. As I

 see it,
we
 either use devmaint or have to logoff/on the guest.

 Any thoughts or suggestions would be appreciated.

 Regards,
 Mary Anne


If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail. http://www.ml.com/email_terms/



IPGATE and alternate userid

2006-06-29 Thread Kris Buelens
IPGATE did not pass the alternate userid of CMS clients to the SFS server

(in most cases that is). 

The fix is simple: 
 - take the IPGATE1Y (S)MTREXX file,
 - move the 4 lines staring with address 'CPICOMM' 'XCECSU ... 
   to before if word(partner_LU_name,1)  '*USERID'

Kris Buelens


Format Allocate question.

2006-06-29 Thread Phil Tully
Has anyone  seen a problem format/allocating a volume where the cpfmtxa 
format goes from 0-end of a mod-9 successfully with no errors in the 
console log, but the messages show the volume is being formatted past 
cyl 3338.


When you allocate it will only permit allocation for the 1st 3339 
(mod3), I have attempted SPOL 0-end, SPOL 0-3338, SPOL 1-end, SPOL 1-3338, 

But each time when we attempt to attach to the system it is rejected 
because of an invalid allocation record.


The systems are z/VM 5.1 and z/VM 5.2 both with  latest  version of ickdsf.

The only difference about the  definition of the LCU in the IBM ESS is 
as a 3990-3 TPF rather than the normal 3990-9.




Phil Tully

--

'in media stat virtus'
Virtue's in the middle


duplicate dasd volume serial numbers

2006-06-29 Thread Steve Gentry

If there are duplicate volume serial numbers and VM IPL's, does it use the first 
volume it incounters?  It seems to me that it does. I need to move my 520PAG volume.
Thanks,
Steve G

Re: duplicate dasd volume serial numbers

2006-06-29 Thread Mark Pace, Mainline Information System
Yes, VM/CP will use the 1st (ie. lowest addressed) VOLSER  and put the
other one offline.



Mark D Pace
Senior Systems Engineer
Mainline Information Systems
1700 Summit Lake Drive
Tallahassee, FL. 32317
Office: 850.219.5184
Fax: 888.221.9862
http://www.mainline.com


Re: duplicate dasd volume serial numbers

2006-06-29 Thread Jim Bohnsack
Alan Altmark, I think, talked about this a couple of years ago here.  Yes, 
it does use the first it finds, but it is hard to predict which will be 
first.  If I remember correctly, CP runs parallel or multiple commands out 
to the I/O subsystem and it depends on the order of the responses as to 
which volume it will find first.


What you should do is define a devno as being offline at ipl in SYSTEM CONFIG.
Jim

At 02:52 PM 6/29/2006, you wrote:

This is a multipart message in MIME format.
--=_alternative 0067A7360525719C_=
Content-Type: text/plain; charset=us-ascii

If there are duplicate volume serial numbers and VM IPL's, does it use the
first
volume it incounters?   It seems to me that it does.  I need to move my
520PAG  volume.
Thanks,
Steve G
--=_alternative 0067A7360525719C_=
Content-Type: text/html; charset=us-ascii


brfont size=2 face=sans-serifIf there are duplicate volume serial 
numbers and VM IPL's, does it use the first /font
brfont size=2 face=sans-serifvolume it incounters? nbsp; It seems 
to me that it does. nbsp;I need to move my 520PAG nbsp;volume./font

brfont size=2 face=sans-serifThanks,/font
brfont size=2 face=sans-serifSteve G/font
--=_alternative 0067A7360525719C_=--


Jim Bohnsack
Cornell Univ.
(607) 255-1760


Re: duplicate dasd volume serial numbers

2006-06-29 Thread Mike Walter

Steve (and others who have note used
the IBMVM listserve web search capability),

:reminder on
Visit http://listserv.uark.edu/archives/ibmvm.html
It has a very powerful search capability
to find answer to questions previously asked at IBMVM - before you even
have to ask! :-)
:reminder off

I went to that site and into the search
box entered: duplicate volsers
There were 17 hits going back to 98/10/13
A quick visual search of those 17 turned
up:

---snip---
Date: Sun,
6 Nov 2005 14:29:59 -0500
Reply-To:   VM/ESA and z/VM
Discussions VMESA-L@LISTSERV.UARK.EDU
Sender:VM/ESA
and z/VM Discussions VMESA-L@LISTSERV.UARK.EDU
From: Richard
Corak [EMAIL PROTECTED]
Subject:   Re: 2nd
level install - duplicate volsers
In-Reply-To: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii;
format=flowed

At 01:00 AM 11/5/2005, you wrote:
You can't always count on the lower
address volsers being found
first. That's the way it used
to work before the XA/ESA I/O subsystem came
into existence. I always thought
that was still the case but John
Franciscovich or one of the IBM
Endicott VM gurus set the record straight a
year or two ago on this list. Now,
the order of what is found first is, at
least to CP, random in that the
interrupts that are returned aren't
necessarily in ascending device
number sequence.

If you install this way onto duplicate
volsers, you're only going to be
safe if you set the test addresses
offline at ipl in SYSTEM CONFIG and then
when you bring up the test system,
vary the addresses online and attach
them to the guest. That would
be the thing to do until you get the volids
changed.

Jim

No. Low device address wins, as
long as the low address works.
This does not mean that it is OK to
have duplicate volume labels.
From my explanation, first delivered
here approx March 28, 2003,
and a few times since.

 `Once again, here is how CP works
at initialization regarding
 `volume labels.
 `
 `* While RDEV blocks are allocated
in subchannel number order,
 ` they are added to the
SYSRIOIX radix tree by device number.
 ` See HCPIIDFS.
 `* Many independent tasks are
started, each initializing one device.
 ` These tasks are started
in device number order, with no
 ` regard for subchannel
number.
 ` See HCPIIO near label
MOUNEXT.
 `* It is unpredictable when initialization
for any single device
 ` will be completed compared
to any other.
 `* For DASD that are to be attached
to the system, whether CPOWNed
 ` or user volume, an ordered
list is maintained in device number
 ` order. If multiple
RDEVs are found to contain the same volume
 ` label, the RDEV for the
higher device number is not added to
 ` the list. Effectively,
only RDEVs with lower device numbers
 ` will be attached to the
SYSTEM. See HCPIISDV. Message 0954.01
 ` is displayed at the operator's
console for duplicates at higher
 ` device numbers.
 `
 `This algorithm was changed a
number of times based on customer
 `feedback. If you remember
some sequence that doesn't match
 `this, you're probably right:
at many times in the past it didn't.
 `
 `But remember, if the device
with the lower device number is
 `somehow wrong (doesn't
respond, I/O error, whatever), all
 `your planning based on these
initialization rules is probably
 `broken. Keep unique volume
labels for everything to be
 `attached to SYSTEM.
 `
 `Advice about OFFLINE_AT_IPL
is also good to remember.

Richard Corak 
---snip---

Pay particular attention to the penultimate
paragraph, which in my view pretty much states: when using duplicate volsers,
you pay you money and take your chances.

Mike Walter
Hewitt Associates
The opinions expressed herein are mine
alone, not my employer's.






Steve Gentry
[EMAIL PROTECTED] 

Sent by: The IBM z/VM Operating
System IBMVM@LISTSERV.UARK.EDU
06/29/2006 01:52 PM



Please respond to
The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU






To
IBMVM@LISTSERV.UARK.EDU


cc



Subject
duplicate dasd volume serial numbers









If there are duplicate volume serial numbers and VM IPL's, does it use
the first 
volume it incounters?  It seems to me that it does. I need
to move my 520PAG volume. 
Thanks, 
Steve G

 
The information contained in this e-mail and any accompanying documents 
may contain information that is confidential or otherwise protected 
from disclosure. If you are not the intended recipient of this message, 
or if this message has been addressed to you in error, please 
immediately alert the sender by reply e-mail and then delete this message, 
including any attachments. Any dissemination, distribution or other use of 
the contents of this message by anyone other than the intended recipient 
is strictly prohibited.



Re: Format Allocate question.

2006-06-29 Thread Phil Tully

Jim Bohnsack wrote:
Jim,

I realize the a 3390 is 3339 cyls, but when I format I do not specify 
size and ICKDSF formats 10017 cyls.
Even if I attempt to format 3339, and allocate only  0-3338  cyls I 
still get the error. 

As for the control unit definition, it is just that a control unit not 
device definition,  the customer is pursuing this with HW and SW 
support, but given those three letters TPF in the LCU definition which I 
haven't had much recent contact with,  I thought there might be some 
other reason for this.


Phil

Phil--There is something wrong in what you're saying.  A 3390-3, if 
that is how it is really defined to ESS, is only 3339 cyl's.  A 
mod-9 3390 is 3 times the size of a 3390-3, 3x3339 cyls, 10017.  If 
what you are trying to format is really defined as a 3390-3, then 3339 
cyls is right.


The 3990 you mentioned in the last line is the control unit for a 3390.
Jim

At 01:02 PM 6/29/2006, you wrote:


Has anyone  seen a problem format/allocating a volume where the cpfmtxa
format goes from 0-end of a mod-9 successfully with no errors in the
console log, but the messages show the volume is being formatted past
cyl 3338.

When you allocate it will only permit allocation for the 1st 3339
(mod3), I have attempted SPOL 0-end, SPOL 0-3338, SPOL 1-end, SPOL 
1-3338,


But each time when we attempt to attach to the system it is rejected
because of an invalid allocation record.

The systems are z/VM 5.1 and z/VM 5.2 both with  latest  version of 
ickdsf.


The only difference about the  definition of the LCU in the IBM ESS is
as a 3990-3 TPF rather than the normal 3990-9.



Phil Tully

--

'in media stat virtus'
Virtue's in the middle



Jim Bohnsack
Cornell Univ.
(607) 255-1760




--
'in media stat virtus'
Virtue's in the middle


Re: SFS Question?

2006-06-29 Thread Schuh, Richard
Thanks, I will give it a try.

Regards,
Richard Schuh

 -Original Message-
From:   The IBM z/VM Operating System [mailto:[EMAIL PROTECTED]  On Behalf Of 
Aria Bamdad
Sent:   Thursday, June 29, 2006 12:29 PM
To: IBMVM@LISTSERV.UARK.EDU
Subject:Re: SFS Question?

Richard,

Some SFS commands are 'atomic requests'.  There is more about this in
the CMS Application Dev. Guide.  Your EXEC (pipes) creates a default work unit
that stays active during the execution of the exec.  In order to call
the SFS commands you have, you must first close that work unit, then
call the command.

Below is a sample Rexx procedure you can call to close the default work unit.
Then issue the command.

Hope this helps.
Aria.

RelWorkUnit: Procedure
   CSLRC = 0
   CSLRESC = 0
   WU = 0
   CALL CSL 'DMSRETWU CSLRC CSLRESC WU'
   If (CSLRC ^= 0) | (CSLRESC ^= 0) then do
  Say 'Error calling DMSRELWU, RC='CSLRC 'ReasonCode='CSLRESC
  Say 'Error releasing default workunit.'
   End
Return







On Thu, 29 Jun 2006 12:25:00 -0700 Schuh, Richard said:
I have a service machine that is an administrator for one of our file =
pools. I am trying to get it to clean up the file pool when a userid is =
deleted from the system. My method is to first, enroll the userid for 0 =
blocks, then issue a delete user command. I can log on to this machine =
and enter the commands from the CMS command line and everything works as =
expected. When I try to do it from the driver EXEC for the machine, I am =
greeted with:=20

enroll user JDOE sfsa (blocks 0  =
  =20
DMSJEN1157E Work unit already active when atomic request is issued for =
work unit 1

The delete user fails the same way (different message number, same =
information).=20

How can I determine what is causing the work unit to be active when I =
try this? Alternatively, how can I insure that no work unit will be =
active?=20

Regards,
Richard Schuh



Re: SFS Question?

2006-06-29 Thread Kris Buelens
Here the two examples we keep in our model file.  You can use both 
solutions, but, I'd say getting a new workunit seems better than commit 
the one that is open (who says you can commit something that another 
program opened?)

TITLE:How to handle Workunit problems with SFS files] 
MODEL: /* PIPE STATE fn ft dirid | ... leaves workunit open if the file
MODEL: |  is found.  This then results in: 
MODEL: |DMSQRQ1157E Work unit already active when atomic request...
MODEL: |  Solution: commit the workunit.   Example 
MODEL: |  'PIPE LITERAL T T .|STATE ISODATE|CONS' 
MODEL: |  call csl 'DMSCOMM RETC REAS'; say retc reas 
MODEL: |  'CMDCALL QUERY LIMITS *'  /* Would fail without DMSCOMM*/
MODEL: */ 
MODEL: /* Similar, when a file is open and a workunit is active, some 
MODEL: |  cmds give: DMSQRQ1157E Work unit already active when atomic..
MODEL: |  Solution: get a new workunit.   Example 
MODEL: |  call csl 'DMSGETWU RETC REAS WID1' /* Get a workunit */ 
MODEL: |  call csl 'DMSPUSWU RETC REAS WID1' /* Start using it */ 
MODEL: |  'CMDCALL QUERY LIMITS *' 
MODEL: |  call csl 'DMSPOPWU RETC REAS'  /* Use prev Wunit */ 
MODEL: |  call csl 'DMSRETWU RETC REAS WID1' /* Delete new Wunit */
MODEL: */ 

Kris,
IBM Belgium, VM customer support




Schuh, Richard [EMAIL PROTECTED] 
Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU
2006-06-29 21:25
Please respond to
The IBM z/VM Operating System


To
IBMVM@LISTSERV.UARK.EDU
cc

Subject
SFS Question?





I have a service machine that is an administrator for one of our file 
pools. I am trying to get it to clean up the file pool when a userid is 
deleted from the system. My method is to first, enroll the userid for 0 
blocks, then issue a delete user command. I can log on to this machine and 
enter the commands from the CMS command line and everything works as 
expected. When I try to do it from the driver EXEC for the machine, I am 
greeted with:

enroll user JDOE sfsa (blocks 0
DMSJEN1157E Work unit already active when atomic request is issued for 
work unit 1

The delete user fails the same way (different message number, same 
information).

How can I determine what is causing the work unit to be active when I try 
this? Alternatively, how can I insure that no work unit will be active?

Regards,
Richard Schuh


Re: duplicate dasd volume serial numbers

2006-06-29 Thread Rich Greenberg
On: Thu, Jun 29, 2006 at 05:04:20PM -0500,Steve Gentry Wrote:

} Yes, logic would dictate that the system config file be read first. 
} However, since this is a VM  rez pack (i.e. 520RES, 520PAG, 520SPL, 
} 520W01, etc)
} I didn't know if VM would still seek out those packs first before reading 
} and thus acting upon the system config file.

There is nothing sacred about those volsers.  They can be anything.  The
SYSTEM CONFIG file is found early in the IPL because it has to be on the
volume that you IPL'd.  Then everything else is found using the volsers
and devaddrs from SYSTEM CONFIG.

-- 
Rich Greenberg  N Ft Myers, FL, USA richgr atsign panix.com  + 1 239 543 1353
Eastern time.  N6LRT  I speak for myself  my dogs only.VM'er since CP-67
Canines:Val, Red  Shasta (RIP),Red, Zero  Casey, Siberians  Owner:Chinook-L
Retired at the beach Asst Owner:Sibernet-L


Re: OT: Technology Breakthrough

2006-06-29 Thread Rich Smrcina

Now that's a sweet piece of engineering!

Scully, William P wrote:

There are some days where I wish my job was as exciting as it must be
for the folks at Rockwell:

 
http://video.google.com/videoplay?docid=5125780462773187994q=retro+enca


Tech breakthroughs like this don't occur every day.  



--
Rich Smrcina
VM Assist, Inc.
Main: (262)392-2026
Cell: (414)491-6001
Ans Service:  (360)715-2467
rich.smrcina at vmassist.com

Catch the WAVV!  http://www.wavv.org
WAVV 2007 - Green Bay, WI - May 18-22, 2007


Re: OT: Technology Breakthrough

2006-06-29 Thread Rich Smrcina

Don't you uncouple the Heisenberg Compensators to fix that?

Neale Ferguson wrote:

Yes, but with such advanced technology I'm worried what would happen if the
flay-rod goes out of skew on the treddle!

-Original Message-
Now that's a sweet piece of engineering!

Scully, William P wrote:

There are some days where I wish my job was as exciting as it must be
for the folks at Rockwell:




--
Rich Smrcina
VM Assist, Inc.
Main: (262)392-2026
Cell: (414)491-6001
Ans Service:  (360)715-2467
rich.smrcina at vmassist.com

Catch the WAVV!  http://www.wavv.org
WAVV 2007 - Green Bay, WI - May 18-22, 2007