Re: Simple (?) C question

2017-06-19 Thread David Crayford
If the string can be mutated either by the client or the runtime returning by reference is not re-entrant. I would always prefer to use strings buffers: int get_string(char * buf, size_t buflen); Strings are s much easier in C++. On 20/06/2017 9:59 AM, John McKown wrote: On Mon, Jun 19,

Re: Simple (?) C question

2017-06-19 Thread John McKown
On Mon, Jun 19, 2017 at 4:25 PM, Frank Swarbrick < frank.swarbr...@outlook.com> wrote: > I know there are at least a few C developers here, so I was wondering if > you could answer a question. Is the following valid C? (I'm not asking if > one should actually do it; only if its valid at all.) >

Re: Test email - please ignore

2017-06-19 Thread CM Poncelet
Yes - I can see your message, but I cannot see the messages I post. I tried Ed Finnell's suggestion (via listserv.ua.edu/archives/ibm-main.html) - May want to change your settings for the list to ACK or use the web interface at listserv.ua.edu/archives/ibm-main.html - but that did not

COBOL handling of overflow was Re: strcasecmp() comparing punctuation in ASCII?

2017-06-19 Thread Clark Morris
[Default] On 1 Jun 2017 20:01:35 -0700, in bit.listserv.ibm-main 000433f07816-dmarc-requ...@listserv.ua.edu (Paul Gilmartin) wrote: >> snip >Back around MVS 5.2, many library functions checked for NULL >and returned an explicit "pointer error" errno. This is certainly >consistent with

Re: Aux storage users

2017-06-19 Thread Edward Finnell
GROUP EXTEND Is your friend... In a message dated 6/19/2017 6:12:37 P.M. Central Daylight Time, jesse1.robin...@sce.com writes: I don't have the AS panel on my 2.1 system, so I poked around to see what additional maint was required. I pulled the following PTFs but have not set about

Re: Simple (?) C question

2017-06-19 Thread retired mainframer
The static array will exist for the life of the program and is therefore accessible after the function returns. My compiler accepted it and execution produced the expected result when the printf statement was placed in main. Probably unrelated to your real question but the format string passed

Re: Simple (?) C question

2017-06-19 Thread Paul Gilmartin
On Mon, 19 Jun 2017 21:25:50 +, Frank Swarbrick wrote: >I know there are at least a few C developers here, so I was wondering if you >could answer a question. Is the following valid C? (I'm not asking if one >should actually do it; only if its valid at all.) >char *get_static_string(void)

Re: Simple (?) C question

2017-06-19 Thread Tom Brennan
Looks good to me. Like Peter says, the function returns the pointer correctly, and the compiler should put that string in a static memory location instead of on the stack. Now if you were to do something like this: char * x; printf("%s\n", get_static_string()); x =

Re: Aux storage users

2017-06-19 Thread Jesse 1 Robinson
I don't have the AS panel on my 2.1 system, so I poked around to see what additional maint was required. I pulled the following PTFs but have not set about installing them. Should include the basic function and some additional fixes as well. UI41033 UI41034 UI42234 UI42235 UI90059 . .

Re: CSSMTP user exit and external email

2017-06-19 Thread Jesse 1 Robinson
I don't want to be alarmist, and I certainly would not recommend beating on the hornet's nest just to see who lives there, but the truth is that any file or sysout you have legitimate access to could be transformed into a file that could be sent as an attachment pretty much anywhere your email

Re: Simple (?) C question

2017-06-19 Thread Farley, Peter x23353
Looks OK to me. "str" is an array of char's so the name by itself (without subscript brackets) is actually a pointer to that storage (IOW a char *). Someone well versed in C once told me to remember: str == [0] That is, the array name is equal to the address of the first array member. Peter

Simple (?) C question

2017-06-19 Thread Frank Swarbrick
I know there are at least a few C developers here, so I was wondering if you could answer a question. Is the following valid C? (I'm not asking if one should actually do it; only if its valid at all.) char *get_static_string(void) { static char str[81] = "This is a statically allocated C

Re: PDSE dataset rename issue

2017-06-19 Thread Gibney, Dave
The desire to "muck" with SYS1.SIEKLNKE (or any other linklisted (especially a system) dataset) on a running system is already scary and an indication of probably traveling down the wrong path :) > -Original Message- > From: IBM Mainframe Discussion List

Re: changing batch job to use SSL

2017-06-19 Thread Frank Swarbrick
That's what I figured. Sounds like a lot of "Developer: Systems, can you make this change; Systems: OK; done; Developer: Well that didn't work, can you try this instead?" back and forth. Not my idea of fun. Oh well; I have no such requirement at this point. Just pondering the future...

Re: PDSE dataset rename issue

2017-06-19 Thread Tom Marchant
On Mon, 19 Jun 2017 14:45:13 -0500, Giliad Wilf wrote: >On Sun, 18 Jun 2017 20:15:50 -0400, Jim Mulder wrote: > >> SETPROG LNKLST,UNALLOCATE >> >> SETPROG LNKLST,ALLOCATE >> >> Use with caution. >> >>Jim Mulder z/OS Diagnosis, Design, Development, Test IBM Corp.

Re: PDSE dataset rename issue

2017-06-19 Thread Giliad Wilf
On Sun, 18 Jun 2017 20:15:50 -0400, Jim Mulder wrote: > SETPROG LNKLST,UNALLOCATE > > SETPROG LNKLST,ALLOCATE > > Use with caution. > >Jim Mulder z/OS Diagnosis, Design, Development, Test IBM Corp. >Poughkeepsie NY > The user says he already did this, to no avail. But

Re: changing batch job to use SSL

2017-06-19 Thread Gibney, Dave
The initial implementation and configuring of Policy Agent is not simple, requiring work with RACF (or other SAF security), TCPIP and TN#@&) servers and the agent itself. But once in place, it looks to be well worth the effort. > -Original Message- > From: IBM Mainframe Discussion List

Re: changing batch job to use SSL

2017-06-19 Thread Tony Harminc
On 17 June 2017 at 01:45, Andrew Rowley wrote: > On 17/06/2017 03:05 AM, Tony Harminc wrote: > >> I'm not sure why you seem to think >> this can't be done without client application program involvement. >> > > There are 2 things that need to be validated with the

Re: changing batch job to use SSL

2017-06-19 Thread Denis
Hi Frank, since policy agent belongs to Communication Server and used to have some requirements to be started before TCPIP, I would guess that in most shops a developer cannot do that. Except maybe for play LPARs and zPDT. Denis. -Original Message- From: Frank Swarbrick

Re: changing batch job to use SSL

2017-06-19 Thread Frank Swarbrick
Curious question. Is this something a developer could do in order to test this out, or does it require System level access? Frank From: IBM Mainframe Discussion List on behalf of Denis <01664d8ede6c-dmarc-requ...@listserv.ua.edu>

Re: SRB Again

2017-06-19 Thread Greg Dyck
On 6/19/2017 2:02 AM, contactmura...@gmail.com wrote:> I was expecting 'SRB Abended, Inside FRR now' to be displayed before displaying 'Returned from SRB. In TCB mode now'. Because as per my initial understanding of SYNCH=YES, TCB will be suspended until SRB completes. But as soon as the abend

Re: Orphan control blocks

2017-06-19 Thread Greg Dyck
On 6/19/2017 11:51 AM, Donald Likens wrote: Does anyone see any problems with the following code... Updating free space pointer. To fully understand the possibilities for error you would need to show both sides of the processing, allocation and freeing. In cases like this there is almost

Re: Customer is Using CPACF (Crypto) purchased Crypto Express

2017-06-19 Thread Greg Dyck
On 6/19/2017 8:00 AM, Todd Arnold wrote: - If you need "secure keys" - keys that are protected by hardware that cannot be subverted, even by the highest-technology methods - then use CEX. (but if you need a lower level of security, consider CPACF Protected Key mode.) I would note

Orphan control blocks

2017-06-19 Thread Donald Likens
Does anyone see any problems with the following code... Updating free space pointer. *C DO UNTIL SBLKFREE IS SET *C SET R6 = CSALSBLK.SBLKFREE (ADDRESS TO PUT STORAGE) LG R5,CSALSBLK

Re: RFE? xlc compile option for C integers to be "Intel compat" or Little-Endian

2017-06-19 Thread Tom Marchant
On Fri, 16 Jun 2017 22:56:18 +0100, David W Noon wrote: >I have seen only 2 hardware platforms that perform packed >decimal arithmetic: IBM and plug-compatible mainframes; Groupe Bull / >Honeywell-Bull / Honeywell/GE / General Electric mainframes derived from >the GE-600 series -- although these

Re: TMS REPORT

2017-06-19 Thread Sankaranarayanan, Vignesh
TMEVSNM is the answer. – Vignesh Mainframe Infrastructure -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of esmie moo Sent: 19 June 2017 16:34 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: TMS REPORT Lizette, I apologise for the bad

Re: TMS REPORT

2017-06-19 Thread esmie moo
Lizette,      I apologise for the bad format.  I will take your advice and put a space between lines. I am just trying to find out the volume ranges of tapes which are on a specific LPAR. I ran a check for a volser via online (CA 1/ISPF) and the volser doesn't exist.   I just want to make sure

Re: Customer is Using CPACF (Crypto) purchased Crypto Express

2017-06-19 Thread Tony Thigpen
The "Encryption Facility for z/VSE" product is used to transport data between VSE and z/OS or other platform that would accept data encrypted by ""Encryption Facility for z/OS". It does *not* support "data at rest". It does allow you to copy and encrypt a file, but the whole file has to be

Re: Counting Tape mount requests

2017-06-19 Thread Lizette Koehler
You might look at IBM Tape Tools. It has a lot of reporting and does not require you to have IBM Hardware to use it. It just works through SMF data and provides reports. ftp://ftp.software.ibm.com/storage/tapetool/ The IBM Tape Analysis Tools are licensed, not sold. The license agreement

Re: TMS REPORT

2017-06-19 Thread John McKown
On Mon, Jun 19, 2017 at 8:26 AM, esmie moo < 012780d99c7b-dmarc-requ...@listserv.ua.edu> wrote: > Gentle Readers, > I am trying to run a TMS report to fine all the tape ranges in this particular LPAR. I checked the doc and I found that TMSBINQ would produce Report-12 . However, when I

Re: TMS REPORT

2017-06-19 Thread Lizette Koehler
The CA1 Utilities and Reports manual is very helpful. You could review the section on TMSBINQ and see what the requirements are for the JCL. TMSBINQ produces TMS Report 12 - Batch Inquiry. The report contents are determined by the options selected: HEADERS, VOL, DSN or DSNB. The TMC CTL REC

Re: Counting Tape mount requests

2017-06-19 Thread Barry Merrill
Or just look at the count of type 21 SMF records created, in your daily IFASMFDP "Dump" job, to get the total count of tapes dismounted. Barry Merrilly yours, Herbert W. Barry Merrill, PhD President-Programmer Merrill Consultants MXG Software 10717 Cromwell Drive technical

Re: Customer is Using CPACF (Crypto) purchased Crypto Express

2017-06-19 Thread Joerg Schmidbauer
Todd pointed me to this topic, because it's a z/VSE related question, not z/OS. From my point of view Tony and Todd explained everything correctly. Just one additional info: There is an optional feature "Encryption Facility for z/VSE" that allows encrypting data at rest (Librarian members, VSAM

TMS REPORT

2017-06-19 Thread esmie moo
Gentle Readers,      I am trying to run a TMS report to fine all the tape ranges in this particular LPAR.  I checked the doc and I found that TMSBINQ would produce Report-12 .  However, when I ran the job I get the following error message: UNKNOWN CARD TYPETMC CTL REC #1   END OF REPORT 12    

Re: Aux storage users

2017-06-19 Thread Rob Scott
If you have the latest version of SDSF for z/OS 2.1+, you can use the "AS" command - "Address Space Storage" and look for the "Aux" column value. The AS display is rather like the DA display, but its focus is for real, common and aux storage. -Original Message- From: IBM Mainframe

Re: Customer is Using CPACF (Crypto) purchased Crypto Express

2017-06-19 Thread Todd Arnold
So, the discussion about ICSF is not meaningful - ICSF runs on z/OS, and you're not using z/OS in this case. In general, the choice between CPACF and CEX is fairly straightforward. - If the function(s) you need can be done with CPACF, then use CPACF. It is faster than CEX for everything it

Re: CSSMTP user exit and external email

2017-06-19 Thread Lucas Rosalen
I second Mark about XMITIP. You can always get a process in place to compile the REXX code and have some kind of "product management" system. And, as it's a REXX program, you can very easily wrap a REXX "exit" around it to do whatever you like.

Re: CSSMTP user exit and external email

2017-06-19 Thread Mark Regan
Same at my previous employer, but you can always request an exception if you have a process in place at your site for doing so. Of course when I installed XMITIP nearly 20 years ago, there was no concern then about using REXX programs written by another sysprog from another company. At least with

Re: CSSMTP user exit and external email

2017-06-19 Thread Jousma, David
Thanks Mark, yes, I have played with it in the past. I may have to relook at it again. We've always steered away from "shareware" for general consumption. _ Dave Jousma Manager Mainframe Engineering, Assistant Vice President

Re: Counting Tape mount requests

2017-06-19 Thread גדי בן אבי
Thanks -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Wheeler, Simon Sent: Monday, June 19, 2017 2:57 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Counting Tape mount requests Hi Gadi, There's an IBM extract program called GFTAXTR

Re: Counting Tape mount requests

2017-06-19 Thread Wheeler, Simon
Hi Gadi, There's an IBM extract program called GFTAXTR which is part of the Volume Mount Analyser. It uses SMF records to report on tape mounts and drive usage. Google has a number of hits. thanks, Simon -Original Message- From: IBM Mainframe Discussion List

Re: CSSMTP user exit and external email

2017-06-19 Thread Mark Regan
Have you look at using Lionel Dyck's freeware XMITIP REXX program? More info available at http://www.lbdsoftware.com/xmitip.html . On Mon, Jun 19, 2017 at 7:22 AM Jousma, David wrote: > Skip, Gil, > > Thanks for your feedback. Our shop is really no different than many on >

Re: CSSMTP user exit and external email

2017-06-19 Thread Jousma, David
Skip, Gil, Thanks for your feedback. Our shop is really no different than many on this list. Mainframe environment is held it a "higher standard", right or wrong. Mainframe SMTP here has always been a roll your own as far as creating the SMTP text. The biggest fear has been someone

Re: Counting Tape mount requests

2017-06-19 Thread Ravi Gaur
Easily Tape Mount Monitor (mxg) or looking at VEHSTATS if you have IBM VTS solution. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Counting Tape mount requests

2017-06-19 Thread גדי בן אבי
Hi, Is there any way to count tape mount requests? We are using z/OS v2.1. Our tape drives are 3590s. There is no automated library. Thanks Gadi לתשומת ליבך, בהתאם לנהלי חברת מלם מערכות בע"מ ו/או כל חברת בת ו/או חברה קשורה שלה (להלן : "החברה") וזכויות החתימה בהן, כל הצעה, התחייבות או מצג

Re: Set up SHCDS datasets in RLS enviroment

2017-06-19 Thread Jorge Garcia
Hi Tobias, you can download from this link https://share.confex.com/share/122/webprogram/Session15089.html Regards -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with