Commands in Batch

2006-03-02 Thread Philip Miscione
Hello,

What is the best method of issuing vary online/offline commands in the
batch.

TIA


Philip A. Miscione Sr

Project Leader

Barnes & Noble, Inc.

email: [EMAIL PROTECTED] 

Phone: 516-338-8227

Fax : 516-338-8487






-
This electronic mail message contains information that (a) is or may be 
CONFIDENTIAL, PROPRIETARY IN NATURE, OR OTHERWISE
PROTECTED BY LAW FROM DISCLOSURE, and (b) is intended only for the use of the 
addressee(s) named herein.  If you are not an
intended recipient, please send an email immediately to [EMAIL PROTECTED]  and 
take the steps necessary to delete the message
completely from your computer system.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-02 Thread Rob Scott
Philip,

The most efficient (and safest) way is to interface to the IEEVARYD
service.

I have a sample program called "VARYDASD" that uses IEEVARYD that you
can download from : 

http://www.mximvs.com/utility-programs.shtml

Source code is included.


Rob Scott
Rocket Software
http://www.rs.com/portfolio/mxi/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-02 Thread Jakubek, Jan
I typically do this via batch MXI:

//MXIBATCH  EXEC PGM=MXI,PARM='BATCH,TITLES'
//SYSPRINT  DD   SYSOUT=* 
//SYSIN DD   *
  /V ,OFFLINE
  /...
/* 
Hth   

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-02 Thread Philip Miscione
Thanks,

Thanks to all

I am going to use the  /*$vs,'   ' command in the batch. B4 the
JOBCARD

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Jakubek, Jan
Sent: Thursday, March 02, 2006 1:17 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: Commands in Batch
Sensitivity: Private

I typically do this via batch MXI:

//MXIBATCH  EXEC PGM=MXI,PARM='BATCH,TITLES'
//SYSPRINT  DD   SYSOUT=*
//SYSIN DD   *   
  /V ,OFFLINE
  /...   
/*
Hth  

--
For IBM-MAIN subscribe / signoff / archive access instructions, send
email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search
the archives at http://bama.ua.edu/archives/ibm-main.html

-
This electronic mail message contains information that (a) is or may be 
CONFIDENTIAL, PROPRIETARY IN NATURE, OR OTHERWISE
PROTECTED BY LAW FROM DISCLOSURE, and (b) is intended only for the use of the 
addressee(s) named herein.  If you are not an
intended recipient, please send an email immediately to [EMAIL PROTECTED]  and 
take the steps necessary to delete the message
completely from your computer system.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-02 Thread Ed Finnell
 
In a message dated 3/2/2006 12:30:49 P.M. Central Standard Time,  
[EMAIL PROTECTED] writes:

am going  to use the  /*$vs,'   ' command in the batch. B4  the
JOBCARD



>>
The initiator that it runs in need AUTH=ALL and if opercmds. is active the  
submitting user needs authority to the subclass.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-02 Thread Jack Kelly
as long as you don't have security too tight, kiss

//BR14001 EXEC PGM=IEFBR14
// COMMAND 'V 501,ONLINE '

Jack Kelly
LA Systems @ US Courts
x 202-502-2390

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-02 Thread Hal Merritt
Also might also be aware that the commands are executed immediately upon
submission on that LPAR. There is no delay or routing. There is no
relevance where the commands appear; they can appear anywhere in the
job. 

I think I read in some IBM doc that the //  COMMAND ' ' was the
'preferred' method. 

I am not familiar with the /*$VS,' ' syntax.  

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Ed Finnell
Sent: Thursday, March 02, 2006 12:36 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: Commands in Batch

 
In a message dated 3/2/2006 12:30:49 P.M. Central Standard Time,  
[EMAIL PROTECTED] writes:

am going  to use the  /*$vs,'   ' command in the batch. B4  the
JOBCARD



>>
The initiator that it runs in need AUTH=ALL and if opercmds. is active
the  
submitting user needs authority to the subclass.
 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-02 Thread Chris Mason
Hal,

Here's what you can find in z/OS V1R7.0 JES2 Commands, SA22-7526-05:



5.243 $VS - Enter MVS system commands through JES2

Function

To enter an MVS system command in a job stream, through an automatic JES2
command, or within the JES2 initialization data set.

Syntax


>>__$VS__,'command('command')...><

Parameters

'command'

The MVS system command(s) that are submitted through JES2. You must use
double quotes in any MVS command that uses single quotes. For example, to
issue an MVS SEND command, you would enter:

$VS,'SEND "message text",USER=(userid)'.

Authority Required

This command requires system authority. The description of the $T RDRnn
command explains how to ensure the proper MVS system command group authority
is assigned.

This command requires control security access authority. For a description
of assigning command input authority, see z/OS JES2 Initialization and
Tuning Guide.

Processing Considerations

The $VS command is valid only as an automatic command or in a job stream. If
you wish to issue an MVS command from the console for immediate execution,
enter the MVS command directly; $VS will not be accepted for this purpose.

The $VS command is normally entered from a local JES2 card reader that has
system authority. The responses to the MVS command(s) entered with the $VS
command appear at the console with master level authority on the issuing
system.

Scope

Single member. This command will be in effect for this member only. There is
no need to have this command issued to all members of the MAS.

Messages

Entering an MVS command using $VS does not generate any JES2 messages. For
information about any MVS messages, see z/OS MVS System Messages, Vol 1
(ABA-AOM), SA22-7631

Example

  1   $vs, 'v (234,235,236),offline','d a'

JES2 submits the MVS VARY and DISPLAY commands to the MVS system for
processing if the commands were issued in a job stream or as automatic
commands.



Incidentally, it's quite a while since I saw a "card reader".

Chris Mason

- Original Message - 
From: "Hal Merritt" <[EMAIL PROTECTED]>
Newsgroups: bit.listserv.ibm-main
To: 
Sent: Thursday, 02 March, 2006 8:07 PM
Subject: Re: Commands in Batch


> Also might also be aware that the commands are executed immediately upon
> submission on that LPAR. There is no delay or routing. There is no
> relevance where the commands appear; they can appear anywhere in the
> job.
>
> I think I read in some IBM doc that the //  COMMAND ' ' was the
> 'preferred' method.
>
> I am not familiar with the /*$VS,' ' syntax.
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
> Behalf Of Ed Finnell
> Sent: Thursday, March 02, 2006 12:36 PM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: Commands in Batch
>
>
> In a message dated 3/2/2006 12:30:49 P.M. Central Standard Time,
> [EMAIL PROTECTED] writes:
>
> am going  to use the  /*$vs,'   ' command in the batch. B4  the
> JOBCARD
>
>
>
> >>
> The initiator that it runs in need AUTH=ALL and if opercmds. is active
> the
> submitting user needs authority to the subclass.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-02 Thread Eric Bielefeld
There is a command on the CBT site called COMMAND.  It works very well 
for issuing commands from a jobstream.  You can issue any command as a 
parm.  The commands can also be in a PDS member.  I use the program 
COMMAND to shut our system down.  

Eric Bielefeld
Sr. Systems Programmer
P&H Mining Equipment
414-671-7849
Milwaukee, Wisconsin


- Original Message -
From: Hal Merritt <[EMAIL PROTECTED]>
Date: Thursday, March 2, 2006 1:07 pm
Subject: Re: Commands in Batch
To: IBM-MAIN@BAMA.UA.EDU

> Also might also be aware that the commands are executed 
> immediately upon
> submission on that LPAR. There is no delay or routing. There is no
> relevance where the commands appear; they can appear anywhere in the
> job. 
> 
> I think I read in some IBM doc that the //  COMMAND ' ' was the
> 'preferred' method. 
> 
> I am not familiar with the /*$VS,' ' syntax.  

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-02 Thread Ted MacNEIL
>What is the best method of issuing vary online/offline commands in the
batch.

By NOT doing them!  (8-{>}


-
-teD

I’m an enthusiastic proselytiser of the universal panacea I believe in!

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-02 Thread Ed Gould

On Mar 2, 2006, at 12:29 PM, Philip Miscione wrote:


Thanks,

Thanks to all

I am going to use the  /*$vs,'   ' command in the batch. B4 the
JOBCARD



Philip,

I hope you have these protected or just anyone can use it to do just  
about anything you want, including canceling production jobs and  
online systems, etc.


It just takes one oops and you could be in deep doodoo.

Ed
 


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-03 Thread Shmuel Metz (Seymour J.)
In <[EMAIL PROTECTED]>,
on 03/02/2006
   at 01:02 PM, Philip Miscione <[EMAIL PROTECTED]> said:

>What is the best method of issuing vary online/offline commands in
>the batch.

The TSO CONSOLE command.
 
-- 
 Shmuel (Seymour J.) Metz, SysProg and JOAT
 ISO position; see  
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: Commands in Batch

2006-03-06 Thread Brian Westerman
On Thu, 2 Mar 2006 20:41:51 -0500, Shmuel Metz (Seymour J.)
<[EMAIL PROTECTED]> wrote:

>In <[EMAIL PROTECTED]>,
>on 03/02/2006
>   at 01:02 PM, Philip Miscione <[EMAIL PROTECTED]> said:
>
>>What is the best method of issuing vary online/offline commands in
>>the batch.
>
>The TSO CONSOLE command.
>
>--
> Shmuel (Seymour J.) Metz, SysProg and JOAT
> ISO position; see 
>We don't care. We don't have to care, we're Congress.
>(S877: The Shut up and Eat Your spam act of 2003)
>
>--
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
>Search the archives at http://bama.ua.edu/archives/ibm-main.html

You can use the CommandZ program on my file on the CBT tape
(www.cbttape.org), it's file088.

CommandZ will not only allow you to issue the command, but will allow you to
test if it worked or not, or if you even really need to issue the command in
the first place, you can also have the script wait until the device is
actually in the state you wanted:  IFONLINE/IFOFFLINE and ONLINE/OFFLINE.
You can ask it to work by either VOLSER or Unit Address

For instance:

IFONLINE V=MVSRS2  < check if MVSRS2 online now
  V 0123,offline   < if so, vary it offline
ENDIF   < end of our IF group
OFFLINE V=MVSRS2   < This will pause until the volume is offline
S INITDSK,V=0123   < do whatever you wanted the disk offline for

You could also go by Unit address

IFONLINE A=0123
  V 0123,OFFLINE
ENDIF
OFFLINE A=0123
S INITDSK,V=0123


This version of the program is available at no cost (free:).

Brian Westerman
Syzygy Incorporated

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


TSO XMIT and RECEIVE commands in batch

2007-05-23 Thread Ale Eba
I want to copy datasets from one z/OS image to another. There is no shared 
DASD. To use a tape is not easy because of management problems. I tried to XMIT 
using a batch job. When I ran the batch receive job, the datasets were not 
received in correct DD names . Is there a way to get around this problem ?  
   
  Ale

 
-
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


TSO XMIT and RECEIVE commands in batch

2007-05-23 Thread Don Maxwell

I want to copy datasets from one z/OS image to another. There is no shared
DASD. To use a tape is not easy because of management problems. I tried to
XMIT using a batch job. When I ran the batch receive job, the datasets were
not received in correct DD names . Is there a way to get around this problem




Running REXX under TSO, you can queue up the target dataset name for the
RECEIVE command.  I've done such things in batch before.

/* rexx */

x = prompt('ON')

address "TSO"

queue "da('target.dataset.name')"
"receive indsn('input.xmit.dataset.name')"


The results of the RECEIVE command will be placed in 'target.dataset.name'.


Regards, 
 
Don Maxwell, B. Math, EDP
Crawford Technologies Support
Tel: (416) 410-1467 ext 208
Email:  [EMAIL PROTECTED]
Web:   www.crawfordtech.com
 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: TSO XMIT and RECEIVE commands in batch

2007-05-23 Thread Lionel B Dyck
Have you considered using FTP? That might be more flexible.

Lionel B. Dyck, Consultant/Specialist 
Enterprise Platform Services, Mainframe Engineering 
KP-IT Enterprise Engineering, Client and Platform Engineering Services 
(CAPES) 
925-926-5332 (8-473-5332) | E-Mail: [EMAIL PROTECTED] 
AIM: lbdyck | Yahoo IM: lbdyck 
Kaiser Service Credo: "Our cause is health. Our passion is service. We?re 
here to make lives better.? 

?Never attribute to malice what can be caused by miscommunication.? 

NOTICE TO RECIPIENT: If you are not the intended recipient of this e-mail, 
you are prohibited from sharing, copying, or otherwise using or disclosing 
its contents. If you have received this e-mail in error, please notify the 
sender immediately by reply e-mail and permanently delete this e-mail and 
any attachments without reading, forwarding or saving them. Thank you. 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: TSO XMIT and RECEIVE commands in batch

2007-05-23 Thread Kurt Gramling
Ale,
  We use a process that we can compress many datasets using ADRDSSU
DUMP (DFDSS Utility) into a single dataset, XMIT this dataset into a
secondary dataset which can then be FTP'd to the final destination.  This
allows us to do many different kinds of datasets within a single transfer.
On the other side, we do a RECEIVE and then a ADRDSSU RESTORE.

Hope this helps.
Kurt Gramling




   
  "Ale Eba" 
   
  <[EMAIL PROTECTED]To:   IBM-MAIN@BAMA.UA.EDU  

  >cc:  
   
  Sent by: "IBMSubject:  [IBM-MAIN] TSO XMIT 
and RECEIVE commands in batch 
  Mainframe 
   
  Discussion List"  
   
  <[EMAIL PROTECTED]

  .EDU> 
   

   

   
  05/23/2007 01:24  
   
  PM
   
  Please respond to 
   
  "IBM Mainframe
   
  Discussion List"  
   

   

   




I want to copy datasets from one z/OS image to another. There is no shared
DASD. To use a tape is not easy because of management problems. I tried to
XMIT using a batch job. When I ran the batch receive job, the datasets were
not received in correct DD names . Is there a way to get around this
problem ?

  Ale


-
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: TSO XMIT and RECEIVE commands in batch

2007-05-23 Thread Kurt Gramling
Ale,
  We use a process that we can compress many datasets using ADRDSSU
DUMP (DFDSS Utility) into a single dataset, XMIT this dataset into a
secondary dataset which can then be FTP'd to the final destination.  This
allows us to do many different kinds of datasets within a single transfer.
On the other side, we do a RECEIVE and then a ADRDSSU RESTORE.

Hope this helps.
Kurt Gramling



I want to copy datasets from one z/OS image to another. There is no shared
DASD. To use a tape is not easy because of management problems. I tried to
XMIT using a batch job. When I ran the batch receive job, the datasets were
not received in correct DD names . Is there a way to get around this
problem ?

  Ale

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: TSO XMIT and RECEIVE commands in batch

2007-05-23 Thread Ale Eba
Thanks Lionel and Kurt. I will use ADRDSSU to create three or four groups 
because of space problem and use FTP to do the transfer.
   
  Ale 

   
-
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: TSO XMIT and RECEIVE commands in batch

2007-05-23 Thread Lionel B Dyck
Take a look at a tool I wrote called FTPBatch on my website 
(http://www.lbdsoftware.com) which will simplify doing this and it 
supports adrdssu as well. It is an ispf dialog that generates the 
appropriate commands for foreground execution or jcl for batch execution.

Lionel B. Dyck, Consultant/Specialist 
Enterprise Platform Services, Mainframe Engineering 
KP-IT Enterprise Engineering, Client and Platform Engineering Services 
(CAPES) 
925-926-5332 (8-473-5332) | E-Mail: [EMAIL PROTECTED] 
AIM: lbdyck | Yahoo IM: lbdyck 
Kaiser Service Credo: "Our cause is health. Our passion is service. We?re 
here to make lives better.? 

?Never attribute to malice what can be caused by miscommunication.? 

NOTICE TO RECIPIENT: If you are not the intended recipient of this e-mail, 
you are prohibited from sharing, copying, or otherwise using or disclosing 
its contents. If you have received this e-mail in error, please notify the 
sender immediately by reply e-mail and permanently delete this e-mail and 
any attachments without reading, forwarding or saving them. Thank you. 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


How do I issue Vary SMS commands in batch

2009-11-26 Thread גדי בן אבי
Hi,

I would like to issue the ‘V SMS,VOL(xxx),Disable,new’ command, or an 
equivalent, in batch.

The job would issue the command, then run a defrag step, and then issue another 
command to enable the volume.

Is this possible?

Using the COMMAND JCL statement won’t work, because the command would be issued 
at submit time instead of run time.

TIA

Gadi


לשימת לבך, בהתאם לנהלי החברה וזכויות החתימה בה, כל הצעה, התחייבות או מצג מטעם 
החברה, מחייבים מסמך נפרד וחתום על ידי מורשי החתימה של החברה, הנושא את לוגו 
החברה או שמה המודפס ובצירוף חותמת החברה. בהעדר מסמך כאמור (לרבות מסמך סרוק) 
המצורף להודעת דואר אלקטרוני זאת, אין לראות באמור בהודעה אלא משום טיוטה לדיון, 
ואין להסתמך עליה לביצוע פעולה עסקית או משפטית כלשהי.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: How do I issue Vary SMS commands in batch

2009-11-26 Thread Juergen Keller
try this:
//CMD   EXEC PGM=IEBGENER   
//SYSPRINT DD SYSOUT=* 
//SYSINDD DUMMY
//SYSUT2   DD SYSOUT=(A,INTRDR)
//SYSUT1   DD DATA,DLM=XX  
/*$VS,'cmd'
XX 
regards Juergen

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: How do I issue Vary SMS commands in batch

2009-11-26 Thread גדי בן אבי
Thanks

-Original Message-
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Juergen Keller
Sent: Thursday, November 26, 2009 2:57 PM
To: IBM-MAIN@bama.ua.edu
Subject: Re: How do I issue Vary SMS commands in batch

try this:
//CMD   EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSINDD DUMMY
//SYSUT2   DD SYSOUT=(A,INTRDR)
//SYSUT1   DD DATA,DLM=XX
/*$VS,'cmd'
XX
regards Juergen

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

לשימת לבך, בהתאם לנהלי החברה וזכויות החתימה בה, כל הצעה, התחייבות או מצג מטעם 
החברה, מחייבים מסמך נפרד וחתום על ידי מורשי החתימה של החברה, הנושא את לוגו 
החברה או שמה המודפס ובצירוף חותמת החברה. בהעדר מסמך כאמור (לרבות מסמך סרוק) 
המצורף להודעת דואר אלקטרוני זאת, אין לראות באמור בהודעה אלא משום טיוטה לדיון, 
ואין להסתמך עליה לביצוע פעולה עסקית או משפטית כלשהי.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: How do I issue Vary SMS commands in batch

2009-11-26 Thread Binyamin Dissen
On Thu, 26 Nov 2009 14:52:25 +0200 ??? ?? ???  wrote:

:>I would like to issue the ‘V SMS,VOL(xxx),Disable,new’ command, or an 
equivalent, in batch.

:>The job would issue the command, then run a defrag step, and then issue 
another command to enable the volume.

:>Is this possible?

:>Using the COMMAND JCL statement won’t work, because the command would be 
issued at submit time instead of run time.

Run batch TMP with the CONSOLE command.

--
Binyamin Dissen 
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: How do I issue Vary SMS commands in batch

2009-11-26 Thread Lizette Koehler
Gadi,

You could use a scheduling package to submit the first job that would do the
vary, then submit a second job to do the defrag, then have it issue a last
job to do the last vary.

Or you could write a REXX that runs in batch that does all this and does
condition code checking.

Or you could write (and there might be one on the CBT Tape website) that
uses SVC34 to issue commands.

I thought when you used DFDSS to defrag a pack it was "locked" the volume
until the defrag completes, so you would not need to put the volume in
DISNEW status.  Though I might be remembering wrong.

Lizette


> 
> Hi,
> 
> I would like to issue the 'V SMS,VOL(xxx),Disable,new' command, or an
equivalent, in
> batch.
> 
> The job would issue the command, then run a defrag step, and then issue
another
> command to enable the volume.
> 
> Is this possible?
> 
> Using the COMMAND JCL statement won't work, because the command would be
issued
> at submit time instead of run time.
> 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: How do I issue Vary SMS commands in batch

2009-11-26 Thread Paul Gilmartin
On Thu, 26 Nov 2009 08:12:28 -0500, Lizette Koehler wrote:
>
>You could use a scheduling package to submit the first job that would do the
>vary, then submit a second job to do the defrag, then have it issue a last
>job to do the last vary.
>
Why three jobs?  Couldn't the first vary and the defrag be combined in a
single job?

And to avoid races, it's probably safer not to use a scheduler, but
to have the defrag job submit the last vary with IEBGENER.

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: How do I issue Vary SMS commands in batch

2009-11-26 Thread Itschak Mugzach
I would issue the commands using TSO Console command and get the response to
see if the command was executed with no problem. Entering the command is one
thing, and ensuring that the command did what you wanted is another
thing. Rexx / Clist are best platforms for doing this.

Regards,
ITschak

On Thu, Nov 26, 2009 at 5:28 PM, Paul Gilmartin wrote:

> On Thu, 26 Nov 2009 08:12:28 -0500, Lizette Koehler wrote:
> >
> >You could use a scheduling package to submit the first job that would do
> the
> >vary, then submit a second job to do the defrag, then have it issue a last
> >job to do the last vary.
> >
> Why three jobs?  Couldn't the first vary and the defrag be combined in a
> single job?
>
> And to avoid races, it's probably safer not to use a scheduler, but
> to have the defrag job submit the last vary with IEBGENER.
>
> -- gil
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: How do I issue Vary SMS commands in batch

2009-11-27 Thread Jan MOEYERSONS
On Thu, 26 Nov 2009 14:52:25 +0200, גדי בן 
אבי  wrote:

>The job would issue the command, then run a defrag step, and then issue 
another command to enable the volume.
>
>Is this possible?

Can I suggest you search the archives? This topic has come up s many 
times, there's bound to be a solution that fits your exact needs perfectly 
described.

Cheers,

Jantje.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: How do I issue Vary SMS commands in batch

2009-11-30 Thread Shmuel Metz (Seymour J.)
In
,
on 11/26/2009
   at 02:52 PM,  said:

>I would like to issue the  V SMS,VOL(xxx),Disable,new  command, or an
>equivalent, in batch.

>The job would issue the command, then run a defrag step, and then issue
>another command to enable the volume.

>Is this possible?

Yes, if your security folks bless it. Use the CONSOLE command in batch
TSO.
 
-- 
 Shmuel (Seymour J.) Metz, SysProg and JOAT
 ISO position; see  
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html