Re: How to get TSOCMD to recognize my TSO PROFILE MSGID

2015-12-29 Thread Paul Gilmartin
On Tue, 29 Dec 2015 14:12:29 -0500, Shmuel Metz (Seymour J.) wrote:

> on 12/29/2015 at 05:31 PM, Lindy Mayfield said:
>
>>But when I type TSOCMD PROFILE I see NOMSGID.
>
>Think batch.
>
Why?  (I prefer not to.)

>>How can I turn on MSGID when using TSOCMD?
>
>PROFILE MSGID
>
But it reverts to its prior setting before the next use of TSOCMD.  That is his
complaint.

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


How to get TSOCMD to recognize my TSO PROFILE MSGID

2015-12-29 Thread Lindy Mayfield
Hi,

I also asked this on the MVS-OE list.

I'm using the TSO OMVS interface and running a Java program that looks for IDC 
messages, especially for the DELETE command using TSOCMD cause DEL is 
authorized.

Before I go into OMVS my TSO PROFILE MSGID is on.  When I get to OMVS I can 
type PROFILE and hit F6 and see MSGID.  But when I type TSOCMD PROFILE I see 
NOMSGID.  And when I type TSOCMD PROFILE MSGID, then check with TSOCMD PROFILE 
I see that it's still NOMSGID.

How can I turn on MSGID when using TSOCMD?

Thanks!
Lindy

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: How to get TSOCMD to recognize my TSO PROFILE MSGID

2015-12-29 Thread Lindy Mayfield
Hi,

A proper rt'ing of the fm shows a TSOPROFILE environment variable that needed 
to be used. :)

Sorry for the premature posts.

Happy New Year to all!
Lindy

From: Lindy Mayfield
Sent: Tuesday, December 29, 2015 7:32 PM
To: 'IBM-MAIN@LISTSERV.UA.EDU' <IBM-MAIN@LISTSERV.UA.EDU>
Subject: How to get TSOCMD to recognize my TSO PROFILE MSGID

Hi,

I also asked this on the MVS-OE list.

I'm using the TSO OMVS interface and running a Java program that looks for IDC 
messages, especially for the DELETE command using TSOCMD cause DEL is 
authorized.

Before I go into OMVS my TSO PROFILE MSGID is on.  When I get to OMVS I can 
type PROFILE and hit F6 and see MSGID.  But when I type TSOCMD PROFILE I see 
NOMSGID.  And when I type TSOCMD PROFILE MSGID, then check with TSOCMD PROFILE 
I see that it's still NOMSGID.

How can I turn on MSGID when using TSOCMD?

Thanks!
Lindy

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: How to get TSOCMD to recognize my TSO PROFILE MSGID

2015-12-29 Thread Shmuel Metz (Seymour J.)
In , on
12/29/2015
   at 05:31 PM, Lindy Mayfield  said:

>But when I type TSOCMD PROFILE I see NOMSGID.

Think batch.

>How can I turn on MSGID when using TSOCMD?

PROFILE MSGID
 
-- 
 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...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: How to get TSOCMD to recognize my TSO PROFILE MSGID

2015-12-29 Thread Paul Gilmartin
On Tue, 29 Dec 2015 17:31:33 +, Lindy Mayfield wrote:
>
>I'm using the TSO OMVS interface and running a Java program that looks for IDC 
>messages, especially for the DELETE command using TSOCMD cause DEL is 
>authorized.
>
>Before I go into OMVS my TSO PROFILE MSGID is on.  When I get to OMVS I can 
>type PROFILE and hit F6 and see MSGID.  But when I type TSOCMD PROFILE I see 
>NOMSGID.  And when I type TSOCMD PROFILE MSGID, then check with TSOCMD PROFILE 
>I see that it's still NOMSGID.
>
>How can I turn on MSGID when using TSOCMD?
> 
I'd be inclined to wrap everything in Rexx ahd ADDRESS TSO.  That has
other limitations, but those may be more acceptable to you.

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: How to get TSOCMD to recognize my TSO PROFILE MSGID

2015-12-29 Thread John McKown
Better:
http://www-01.ibm.com/support/knowledgecenter/api/content/nl/en-us/SSYKE2_6.0.0/com.ibm.java.zsecurity.api.60.doc/com.ibm.jzos/com/ibm/jzos/AccessMethodServices.html

A class that provides a Java interface to z/OS Access Method Services
(IDCAMS).

Output from IDCAMS (DD SYSPRINT) is redirected by default to a String (
getOutputLines()
).
The method setOutputDDName(String)

may
be used before execute()

to
direct IDCAMS output to a pre-allocated DDNAME.


and
http://www-01.ibm.com/support/knowledgecenter/api/content/nl/en-us/SSYKE2_6.0.0/com.ibm.java.zsecurity.api.60.doc/com.ibm.jzos/com/ibm/jzos/ZFile.html



On Tue, Dec 29, 2015 at 6:54 PM, John McKown 
wrote:

> On Tue, Dec 29, 2015 at 5:36 PM, Lindy Mayfield 
> wrote:
>
>> It's an environment variable:
>>
>> export TSOPROFILE='msgid'
>>
>> Actually, I wanted it turned on because the software was looking for IGC*
>> message id's to know if a delete was successful or not.
>>
>
> ​Lindy,
>
> Why not use some of the JZOS functions instead of "tsocmd" for this?
>
>
> http://www-01.ibm.com/support/knowledgecenter/SSYKE2_6.0.0/com.ibm.java.zsecurity.api.60.doc/com.ibm.jzos/index.html
> ​
> ...
>
> ​
>
>- dsExists
>
>public static boolean dsExists(java.lang.String dsn)
>throws ZFileException 
> 
>
>Answer true if the given dataset name exists.
>
>*Note:* Only datasets with FB or VB record format are supported prior
>to version 2.4.0.
>
>Parameters:dsn - a datasetname, which may be enclosed in single quotes
>if already fully qualified, and may or may not be preceded by "//". The
>datasetname may include a PDS member name.Returns:true if the dataset
>exists, false otherwise. If a dataset(member) name is given, the PDS member
>must exist.Throws:ZFileException
>
> 
>
>
> ...
> ​
>
>
> * - removepublic static void remove(java.lang.String fileName) throws
> ZFileException
> Removes
> (deletes) a file (a dataset)This method calls the remove() C-library
> routine. To delete a dataset, use "//my.dataset" or
> "//'fully.qualified.dataset'".Throws:ZFileException
> 
>  -
> if the native call fails or file is not a
> dataset/ddnamejava.lang.SecurityException - if there is a SecurityManager
> and access is disallowed.*
> ...
>
> 
>
>
>
>
>>
>> Lindy
>>
>>
> --
> Computer Science is the only discipline in which we view adding a new wing
> to a building as being maintenance -- Jim Horning
>
> Schrodinger's backup: The condition of any backup is unknown until a
> restore is attempted.
>
> Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be.
>
> He's about as useful as a wax frying pan.
>
> 10 to the 12th power microphones = 1 Megaphone
>
> Maranatha! <><
> John McKown
>



-- 
Computer Science is the only discipline in which we view adding a new wing
to a building as being maintenance -- Jim Horning

Schrodinger's backup: The condition of any backup is unknown until a
restore is attempted.

Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be.

He's about as useful as a wax frying pan.

10 to the 12th power microphones = 1 Megaphone

Maranatha! <><
John McKown

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: How to get TSOCMD to recognize my TSO PROFILE MSGID

2015-12-29 Thread Lindy Mayfield
It's an environment variable: 

export TSOPROFILE='msgid'

Actually, I wanted it turned on because the software was looking for IGC* 
message id's to know if a delete was successful or not.

Lindy

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Shmuel Metz (Seymour J.)
Sent: Tuesday, December 29, 2015 10:39 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: How to get TSOCMD to recognize my TSO PROFILE MSGID

In <9031884752514948.wa.paulgboulderaim@listserv.ua.edu>, on
12/29/2015
   at 01:11 PM, Paul Gilmartin
<000433f07816-dmarc-requ...@listserv.ua.edu> said:

>But it reverts to its prior setting before the next use of TSOCMD.

As it should.

>That is his complaint.

No.
 
-- 
 Shmuel (Seymour J.) Metz, SysProg and JOAT
 ISO position; see <http://patriot.net/~shmuel/resume/brief.html>
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...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: How to get TSOCMD to recognize my TSO PROFILE MSGID

2015-12-29 Thread John McKown
On Tue, Dec 29, 2015 at 5:36 PM, Lindy Mayfield 
wrote:

> It's an environment variable:
>
> export TSOPROFILE='msgid'
>
> Actually, I wanted it turned on because the software was looking for IGC*
> message id's to know if a delete was successful or not.
>

​Lindy,

Why not use some of the JZOS functions instead of "tsocmd" for this?

http://www-01.ibm.com/support/knowledgecenter/SSYKE2_6.0.0/com.ibm.java.zsecurity.api.60.doc/com.ibm.jzos/index.html
​
...

​

   - dsExists

   public static boolean dsExists(java.lang.String dsn)
   throws ZFileException


   Answer true if the given dataset name exists.

   *Note:* Only datasets with FB or VB record format are supported prior to
   version 2.4.0.

   Parameters:dsn - a datasetname, which may be enclosed in single quotes
   if already fully qualified, and may or may not be preceded by "//". The
   datasetname may include a PDS member name.Returns:true if the dataset
   exists, false otherwise. If a dataset(member) name is given, the PDS member
   must exist.Throws:ZFileException
   



...
​


* - removepublic static void remove(java.lang.String fileName) throws
ZFileException
Removes
(deletes) a file (a dataset)This method calls the remove() C-library
routine. To delete a dataset, use "//my.dataset" or
"//'fully.qualified.dataset'".Throws:ZFileException

-
if the native call fails or file is not a
dataset/ddnamejava.lang.SecurityException - if there is a SecurityManager
and access is disallowed.*
...






>
> Lindy
>
>
-- 
Computer Science is the only discipline in which we view adding a new wing
to a building as being maintenance -- Jim Horning

Schrodinger's backup: The condition of any backup is unknown until a
restore is attempted.

Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be.

He's about as useful as a wax frying pan.

10 to the 12th power microphones = 1 Megaphone

Maranatha! <><
John McKown

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: How to get TSOCMD to recognize my TSO PROFILE MSGID

2015-12-29 Thread Shmuel Metz (Seymour J.)
In <9031884752514948.wa.paulgboulderaim@listserv.ua.edu>, on
12/29/2015
   at 01:11 PM, Paul Gilmartin
<000433f07816-dmarc-requ...@listserv.ua.edu> said:

>But it reverts to its prior setting before the next use of TSOCMD.

As it should.

>That is his complaint.

No.
 
-- 
 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...@listserv.ua.edu with the message: INFO IBM-MAIN