Re: Xedit question

2011-02-21 Thread Shimon Lebowitz
You could save a line there.

>>-SHift--+-Left--+--+--+--><
  '-Right-'  |   .-1--. |
 '---cols++-'
 +-target-+
 '-*--'


Shift Right 4 *

Regards,
Shimon


On Mon, Feb 21, 2011 at 10:41 PM, Frank M. Ramaekers
wrote:

>  SH RI 4
>
> REPEAT *
>
>


Re: Xedit question

2011-02-21 Thread Ivica Brodaric
Mark,

C/$/"CP QUERY DASD $"/*
> Alas, testing revealed that the trailing quote doesn't get inserted. How
> come?
>

Your trailing doublequote got truncated but XEDIT remained silent, right?
That's one tiny quirk you've got to remember (or it gets etched into your
mind anyway) when using the arbchar. Since your first $ is not followed by
anything, it represents the whole line including all the trailing blanks up
to zone2 column. If you have "SET ZONE 1 *" and you're making the line
longer with your change, the trailing doublequote in your example will get
truncated but XEDIT will *not* tell you that. Also, the line will *not*
spill even if SPILL is ON. There may be a reason why the designer decided to
do it this way, but I cannot think of one.

To drop the first word and surround the result with doublequotes by using
only CHANGE command, you'd have to use at least two, eg:
c/$ /"CP QUERY DASD /*
c/ /"/* 1 4   -or-   c/DASD $ /DASD $"/*

Ivica Brodaric
BNZ


Re: Xedit question

2011-02-21 Thread Tracy, David
We have a handy little exec2 xedit script we use for this written by a.
durie named gpunch. This tool will insert characters throughout a file
from the command line in xedit.

Gpunch starting_column characters_to_insert number_of_rows

 

Gpunch 1 Q_DA *

 

_ = blank.

* = all lines in file

 



 



From: The IBM z/VM Operating System [mailto:IBMVM@LISTSERV.UARK.EDU] On
Behalf Of Robert Reuscher
Sent: Monday, February 21, 2011 5:52 PM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: Xedit question

 

My original reply got eaten by the listserv as it thought I was sending
it commands (Didn't have any text of than the commands).

 

SET ARBCHAR ON (or just ARBCHAR ON)

ZONE 1 2

C/$/Q DA/*

 

since he also wanted to strip out the leading numbers as shown in his
desired results. 

Robert Reuscher

NR5AR

 

On Feb 21, 2011, at 3:18 PM, Rob van der Heij wrote:





On Mon, Feb 21, 2011 at 9:16 PM, Martin, Terry R. (CMS/CTR) (CTR)
 wrote:




I want to insert the following command Q DA in front of each entry. What
is

the best way to do this using xedit?


This sound like "how can a drill a hole with... " type of challenge. I
probably would not use XEDIT to do it but rather
:0 pipe xedit | spec ,Q DA, 1 w2 nw | cp | cons
(assuming you want to issue the commands, not just have a file with
the commands in it...)

Surprised none of the more experienced XEDIT people suggested ARBCHAR ?
set arbchar on $
:0 ch /$ /Q DA / *

Rob

 



Re: Xedit question

2011-02-21 Thread Robert Reuscher
My original reply got eaten by the listserv as it thought I was sending it 
commands (Didn't have any text of than the commands).

SET ARBCHAR ON (or just ARBCHAR ON)
ZONE 1 2
C/$/Q DA/*

since he also wanted to strip out the leading numbers as shown in his desired 
results. 
Robert Reuscher
NR5AR

On Feb 21, 2011, at 3:18 PM, Rob van der Heij wrote:

> On Mon, Feb 21, 2011 at 9:16 PM, Martin, Terry R. (CMS/CTR) (CTR)
>  wrote:
> 
>> I want to insert the following command Q DA in front of each entry. What is
>> the best way to do this using xedit?
> 
> This sound like "how can a drill a hole with... " type of challenge. I
> probably would not use XEDIT to do it but rather
> :0 pipe xedit | spec ,Q DA, 1 w2 nw | cp | cons
> (assuming you want to issue the commands, not just have a file with
> the commands in it...)
> 
> Surprised none of the more experienced XEDIT people suggested ARBCHAR ?
> set arbchar on $
> :0 ch /$ /Q DA / *
> 
> Rob



Re: Xedit question

2011-02-21 Thread Mark Wheeler



> Date: Mon, 21 Feb 2011 15:30:16 -0500
> From: tlk_sysp...@yahoo.com
> Subject: Re: Xedit question
> To: IBMVM@LISTSERV.UARK.EDU
> 
> c//CP QUERY DASD /5
> 
> the key is the // which puts your stuff at the beginning of each line. I wish 
> there was a 
> similar notation for tack it onto the end of each line. I usually put CP 
> commands in 
> quotes '"', so the start of the line would be c//"CP QUERY DASD /5 and then 
> use append " 
> and repeat 5 to add the quote at the end of each line.
> 
> /Tom Kern
> 

I thought "That' easy!", and was going to suggest:
SET ARBCHAR ON $
C/$/"CP QUERY DASD $"/*
Alas, testing revealed that the trailing quote doesn't get inserted. How come?

Mark Wheeler
UnitedHealth Group
  

Re: Xedit question

2011-02-21 Thread Rob van der Heij
On Mon, Feb 21, 2011 at 9:16 PM, Martin, Terry R. (CMS/CTR) (CTR)
 wrote:

> I want to insert the following command Q DA in front of each entry. What is
> the best way to do this using xedit?

This sound like "how can a drill a hole with... " type of challenge. I
probably would not use XEDIT to do it but rather
 :0 pipe xedit | spec ,Q DA, 1 w2 nw | cp | cons
(assuming you want to issue the commands, not just have a file with
the commands in it...)

Surprised none of the more experienced XEDIT people suggested ARBCHAR ?
 set arbchar on $
 :0 ch /$ /Q DA / *

Rob


Re: Xedit question

2011-02-21 Thread Frank M. Ramaekers
SH RI 4

REPEAT *

TOP

COVERLAY Q DA 

 

 

Frank M. Ramaekers Jr.

 

 



From: The IBM z/VM Operating System [mailto:IBMVM@LISTSERV.UARK.EDU] On
Behalf Of Martin, Terry R. (CMS/CTR) (CTR)
Sent: Monday, February 21, 2011 2:16 PM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Xedit question

 

Hi

 

I have a bunch of lines in a file and I want to insert in the beginning
of each line a  Q DA command: 

 

EX: 

09 B32D70 

10 B32D80 

11 B32D81 

12 B32D82 

13 B32D83 

 

I want to insert the following command Q DA in front of each entry. What
is the best way to do this using xedit?

 

Q DA B32D70

 

Terry Martin

LockHeed Martin - CITIC

z/OS and z/VM Performance and Tuning - Operating System Support

Cell - 443 632-4191

Desk - 443 348-2102

 


_
This message contains information which is privileged and confidential and is 
solely for the use of the
intended recipient. If you are not the intended recipient, be aware that any 
review, disclosure,
copying, distribution, or use of the contents of this message is strictly 
prohibited. If you have
received this in error, please destroy it immediately and notify us at 
privacy...@ailife.com.


Re: Xedit question

2011-02-21 Thread Kris Buelens
For this question, a CHANGE is indeed quickly done.  But, there's one of the
best XEDIT add-ons:

- the unmissable the XCOL package:
http://www.vm.ibm.com/download/packages/descript.cgi?XCOL

Just like XEDIT's prefix commands A, M, F, D, DD etc, that work on lines,
XCOL gives you similar commands to work on columns: when you start XCOL, you
get a ??? line on which you type these "col"
commands
So, here after you enter COL * (the * indicates COL works till end-of-file),
you get this



09 B32D70

10 B32D80

11 B32D81

12 B32D82

13 B32D83
let's first insert Q DA:

??i Q DA    (we use the Insert commad, to insert a string right
after where you enter the I)

09 B32D70

10 B32D80

11 B32D81

12 B32D82

13 B32D83
The result



09 Q DA B32D70

10 Q DA B32D80

11 Q DA B32D81

12 Q DA B32D82

13 Q DA B32D83
To delete the numbers.  One could enter D3 in columns 1 of the  line,
but even easier: enter D's on all columns to remove

ddd

09 Q DA B32D70

10 Q DA B32D80

11 Q DA B32D81

12 Q DA B32D82

13 Q DA B32D83

XCOL provides many commands, there is even a command that allows you to
re-align data that no longer are placed in a fixed column.  No, I didn't
write it (except of the Wordflow sub-command).

2011/2/21 Michael Donovan 

>  There's always the XEDIT "columnar" commands. If the file is really long,
> you could run the following macro
>
> /* IQDA XEDIT */
> 'TOP'
> 'NEXT'
> 'CLOCATE :1'
> 'CDELETE 2'
> 'REPEAT *'
> 'TOP'
> 'NEXT'
> 'CINSERT Q DA'
> 'REPEAT *'
> 'TOP'
>
> Thanks!
> Mike
> ---
> The reason lightning doesn't strike twice in the same place
> is that the same place isn't there the second time.
> - Willie Tyler
>
> [image: Inactive hide details for "Martin, Terry R. (CMS---02/21/2011
> 03:16:31 PM---Hi I have a bunch of lines in a file and I want to]"Martin,
> Terry R. (CMS---02/21/2011 03:16:31 PM---Hi I have a bunch of lines in a
> file and I want to insert in the beginning of each line a Q DA comm
>
> From: "Martin, Terry R. (CMS/CTR) (CTR)" 
> To: IBMVM@LISTSERV.UARK.EDU
> Date: 02/21/2011 03:16 PM
> Subject: Xedit question
> Sent by: The IBM z/VM Operating System 
> --
>
>
>
> Hi
>
> I have a bunch of lines in a file and I want to insert in the beginning of
> each line a Q DA command:
>
> EX:
> 09 B32D70
> 10 B32D80
> 11 B32D81
> 12 B32D82
> 13 B32D83
>
> I want to insert the following command Q DA in front of each entry. What
> is the best way to do this using xedit?
>
> Q DA B32D70
>
> Terry Martin
> LockHeed Martin - CITIC
> z/OS and z/VM Performance and Tuning - Operating System Support
> Cell - 443 632-4191
> Desk - 443 348-2102
>
>


-- 
Kris Buelens,
IBM Belgium, VM customer support


Re: Xedit question

2011-02-21 Thread Martin, Terry R. (CMS/CTR) (CTR)
HI
Thanks for all of the suggestions.  I got it to work.

Terry Martin
LockHeed Martin - CITIC
z/OS and z/VM Performance and Tuning - Operating System Support
Cell - 443 632-4191
Desk - 443 348-2102

From: The IBM z/VM Operating System [mailto:IBMVM@LISTSERV.UARK.EDU] On Behalf 
Of Michael Donovan
Sent: Monday, February 21, 2011 3:29 PM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: Xedit question


There's always the XEDIT "columnar" commands. If the file is really long, you 
could run the following macro

/* IQDA XEDIT */
'TOP'
'NEXT'
'CLOCATE :1'
'CDELETE 2'
'REPEAT *'
'TOP'
'NEXT'
'CINSERT Q DA'
'REPEAT *'
'TOP'

Thanks!
Mike
---
The reason lightning doesn't strike twice in the same place
is that the same place isn't there the second time.
- Willie Tyler

[cid:1__=0abbf2addfe3e0f78f9e8a93df...@us.ibm.com]"Martin, Terry R. 
(CMS---02/21/2011 03:16:31 PM---Hi I have a bunch of lines in a file and I want 
to insert in the beginning of each line a Q DA comm

From: "Martin, Terry R. (CMS/CTR) (CTR)" 
To: IBMVM@LISTSERV.UARK.EDU
Date: 02/21/2011 03:16 PM
Subject: Xedit question
Sent by: The IBM z/VM Operating System 





Hi

I have a bunch of lines in a file and I want to insert in the beginning of each 
line a Q DA command:

EX:
09 B32D70
10 B32D80
11 B32D81
12 B32D82
13 B32D83

I want to insert the following command Q DA in front of each entry. What is the 
best way to do this using xedit?

Q DA B32D70

Terry Martin
LockHeed Martin - CITIC
z/OS and z/VM Performance and Tuning - Operating System Support
Cell - 443 632-4191
Desk - 443 348-2102


Re: Xedit question

2011-02-21 Thread Michael Donovan

There's always the XEDIT "columnar" commands.   If the file is really long,
you could run the following macro

/* IQDA  XEDIT */
'TOP'
'NEXT'
'CLOCATE :1'
'CDELETE 2'
'REPEAT *'
'TOP'
'NEXT'
'CINSERT Q DA'
'REPEAT *'
'TOP'

Thanks!
 Mike
---
The reason lightning doesn't strike twice in the same place
is that the same place isn't there the second time.
- Willie Tyler



From:   "Martin, Terry R. (CMS/CTR) (CTR)" 
To: IBMVM@LISTSERV.UARK.EDU
Date:   02/21/2011 03:16 PM
Subject:Xedit question
Sent by:The IBM z/VM Operating System 



Hi

I have a bunch of lines in a file and I want to insert in the beginning of
each line a  Q DA command:

EX:
09 B32D70
10 B32D80
11 B32D81
12 B32D82
13 B32D83

I want to insert the following command Q DA in front of each entry. What is
the best way to do this using xedit?

Q DA B32D70

Terry Martin
LockHeed Martin - CITIC
z/OS and z/VM Performance and Tuning - Operating System Support
Cell - 443 632-4191
Desk - 443 348-2102


Re: Xedit question

2011-02-21 Thread Thomas Kern

c//CP QUERY DASD /5

the key is the // which puts your stuff at the beginning of each line. I wish there was a 
similar notation for tack it onto the end of each line. I usually put CP commands in 
quotes '"', so the start of the line would be c//"CP QUERY DASD /5 and then use append " 
and repeat 5 to add the quote at the end of each line.


/Tom Kern

On 2/21/2011 15:16, Martin, Terry R. (CMS/CTR) (CTR) wrote:

Hi

I have a bunch of lines in a file and I want to insert in the beginning of each 
line a Q
DA command:

EX:

09 B32D70

10 B32D80

11 B32D81

12 B32D82

13 B32D83

I want to insert the following command Q DA in front of each entry. What is the 
best way
to do this using xedit?

Q DA B32D70

Terry Martin

LockHeed Martin - CITIC

z/OS and z/VM Performance and Tuning - Operating System Support

Cell - 443 632-4191

Desk - 443 348-2102



Re: Xedit question

2011-02-21 Thread Michael MacIsaac
c//Q DA /*

"Mike MacIsaac"(845) 433-7061

Re: Xedit question

2011-02-21 Thread Mark Pace
Sorry missed the numbers at the beginning.  Shift left 2 and you remove the
numbers leaving the space needed for the same change command.

On Mon, Feb 21, 2011 at 3:19 PM, Mark Pace  wrote:

> I would shift every line right on space.
> Then change the first space to your sting
> c/ /Q DA /*
>
>
> On Mon, Feb 21, 2011 at 3:16 PM, Martin, Terry R. (CMS/CTR) (CTR) <
> terry.mar...@cms.hhs.gov> wrote:
>
>> Hi
>>
>>
>>
>> I have a bunch of lines in a file and I want to insert in the beginning of
>> each line a  Q DA command:
>>
>>
>>
>> EX:
>>
>> 09 B32D70
>>
>> 10 B32D80
>>
>> 11 B32D81
>>
>> 12 B32D82
>>
>> 13 B32D83
>>
>>
>>
>> I want to insert the following command Q DA in front of each entry. What
>> is the best way to do this using xedit?
>>
>>
>>
>> Q DA B32D70
>>
>>
>>
>> Terry Martin
>>
>> LockHeed Martin - CITIC
>>
>> z/OS and z/VM Performance and Tuning - Operating System Support
>>
>> Cell - 443 632-4191
>>
>> Desk - 443 348-2102
>>
>>
>>
>
>
>
> --
> Mark D Pace
> Senior Systems Engineer
> Mainline Information Systems
>
>
>
>
>


-- 
Mark D Pace
Senior Systems Engineer
Mainline Information Systems


Re: Xedit question

2011-02-21 Thread Mark Pace
I would shift every line right on space.
Then change the first space to your sting
c/ /Q DA /*

On Mon, Feb 21, 2011 at 3:16 PM, Martin, Terry R. (CMS/CTR) (CTR) <
terry.mar...@cms.hhs.gov> wrote:

> Hi
>
>
>
> I have a bunch of lines in a file and I want to insert in the beginning of
> each line a  Q DA command:
>
>
>
> EX:
>
> 09 B32D70
>
> 10 B32D80
>
> 11 B32D81
>
> 12 B32D82
>
> 13 B32D83
>
>
>
> I want to insert the following command Q DA in front of each entry. What
> is the best way to do this using xedit?
>
>
>
> Q DA B32D70
>
>
>
> Terry Martin
>
> LockHeed Martin - CITIC
>
> z/OS and z/VM Performance and Tuning - Operating System Support
>
> Cell - 443 632-4191
>
> Desk - 443 348-2102
>
>
>



-- 
Mark D Pace
Senior Systems Engineer
Mainline Information Systems


Xedit question

2011-02-21 Thread Martin, Terry R. (CMS/CTR) (CTR)
Hi

I have a bunch of lines in a file and I want to insert in the beginning of each 
line a  Q DA command:

EX:
09 B32D70
10 B32D80
11 B32D81
12 B32D82
13 B32D83

I want to insert the following command Q DA in front of each entry. What is the 
best way to do this using xedit?

Q DA B32D70

Terry Martin
LockHeed Martin - CITIC
z/OS and z/VM Performance and Tuning - Operating System Support
Cell - 443 632-4191
Desk - 443 348-2102



Re: DIRMAINT

2011-02-21 Thread Wandschneider, Scott
Thank you Bruce.

Thank you,
Scott


-Original Message-
From: The IBM z/VM Operating System [mailto:IBMVM@LISTSERV.UARK.EDU] On Behalf 
Of Bruce Hayden
Sent: Monday, February 21, 2011 12:31 PM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: DIRMAINT

DIRM FOR VSEXX USEROPTN LOGGING OFF should do it.  That still means
that DIRMAINT will attempt to send CP messages to the user, but that
should be OK.  If not, change the RCVMSGS setting on the USEROPTN
command.

On Mon, Feb 21, 2011 at 1:24 PM, Wandschneider, Scott
 wrote:
> Is there a way to stop DIRMAINT from sending messages to a VSE guest's reader 
> when an update is done to the VSE Guest's directory?  The guest sees these 
> messages in its reader and attempts to read them into POWER.
>
> Thank you,
> Scott R Wandschneider
> Systems Programmer 3|| Infocrossing, a Wipro Company || 11707 Miracle Hills 
> Drive, Omaha, NE, 68154-4457|| : 402.963.8905 || :847.849.7223  ||  : 
> scott.wandschnei...@infocrossing.com **Think Green  - Please print 
> responsibly**
>
>



-- 
Bruce Hayden
z/VM and Linux on System z ATS
IBM, Endicott, NY

Confidentiality Note: This e-mail, including any attachment to it, may contain 
material that is confidential, proprietary, privileged and/or "Protected Health 
Information," within the meaning of the regulations under the Health Insurance 
Portability & Accountability Act as amended.  If it is not clear that you are 
the intended recipient, you are hereby notified that you have received this 
transmittal in error, and any review, dissemination, distribution or copying of 
this e-mail, including any attachment to it, is strictly prohibited. If you 
have received this e-mail in error, please immediately return it to the sender 
and delete it from your system. Thank you.


Re: DIRMAINT

2011-02-21 Thread Bruce Hayden
DIRM FOR VSEXX USEROPTN LOGGING OFF should do it.  That still means
that DIRMAINT will attempt to send CP messages to the user, but that
should be OK.  If not, change the RCVMSGS setting on the USEROPTN
command.

On Mon, Feb 21, 2011 at 1:24 PM, Wandschneider, Scott
 wrote:
> Is there a way to stop DIRMAINT from sending messages to a VSE guest's reader 
> when an update is done to the VSE Guest's directory?  The guest sees these 
> messages in its reader and attempts to read them into POWER.
>
> Thank you,
> Scott R Wandschneider
> Systems Programmer 3|| Infocrossing, a Wipro Company || 11707 Miracle Hills 
> Drive, Omaha, NE, 68154-4457|| : 402.963.8905 || :847.849.7223  ||  : 
> scott.wandschnei...@infocrossing.com **Think Green  - Please print 
> responsibly**
>
>



-- 
Bruce Hayden
z/VM and Linux on System z ATS
IBM, Endicott, NY


DIRMAINT

2011-02-21 Thread Wandschneider, Scott
Is there a way to stop DIRMAINT from sending messages to a VSE guest's reader 
when an update is done to the VSE Guest's directory?  The guest sees these 
messages in its reader and attempts to read them into POWER.

Thank you,
Scott R Wandschneider
Systems Programmer 3|| Infocrossing, a Wipro Company || 11707 Miracle Hills 
Drive, Omaha, NE, 68154-4457|| : 402.963.8905 || :847.849.7223  ||  : 
scott.wandschnei...@infocrossing.com **Think Green  - Please print responsibly**



Virtualization Cookbook for RHEL 6 is published

2011-02-21 Thread Michael MacIsaac
Hello lists,

We are pleased to announce the IBM Redbook "z/VM and Linux on IBM System 
z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0" is 
*finally* published (lawyer+lawyer=slow:)) at 
http://www.redbooks.ibm.com/abstracts/sg247932.html

Thanks goes out to Sue Baloga, Bill Bitner, Carol Everitt, George Madl, 
Tami Zebrowski-Darrow of IBM Endicott, Roy Costa, Eileen Digan, Lydia 
Parziale of IBM Poughkeepsie, Dr. Manfred Gnirss, Steffen Maier, 
Hans-Joachim Picht of IBM Boeblingen, Marian Gasparovic of IBM Slovakia, 
David Boyes of Sine Nomine, Jeremy Agee, Justin Payne of Red Hat in 
Raleigh NC (sorry if we missed anyone)

The changes to this RHEL version are:
-) The z/VM sections are updated for V6.1.
-) The Linux sections are updated for RHEL 6.
-) There are new sections about how to order z/VM electronically, and how 
to make the z/VM product files available for installation from an FTP 
server. See 4.1.1, ?Obtaining z/VM through electronic download? on page 28 
and 6.5, ?Configuring an FTP server for z/VM installation? on page 104 for 
more details.
-) Chapter 5, ?Servicing z/VM? on page 75 has been updated to include 
information about service for the new IBM zEnterprise 196. See 5.2, ?PTFs 
for the zEnterprise 196? on page 84 for more details.
-) Section 13.4, ?Adding SCSI/FCP disks? on page 215 is new.
-) Section 13.6, ?Setting up Linux Memory Hotplugging? on page 224 is new.
-) Section 13.7, ?Using the cpuplugd service? on page 226 is new.
-) Section 13.8, ?Hardware cryptographic support for OpenSSH? on page 229 
is new.

Pointers to all versions of the "Virtualization Cookbooks" can be found at 
http://www.vm.ibm.com/devpages/mikemac/

Feedback is welcome. Enjoy!

Mike MacIsaac and Brad Hinson