Re: S0C6 in CSRC4RG1

2018-07-18 Thread Tom Brennan

On 7/18/2018 4:12 PM, David Crayford wrote:


NI FLAG1,X'FF'-BIT1


I often did this to try to help the next poor soul forced to look at my 
code:


NOT  EQU   X'FF'
 NIFLAG1,NOT-BIT1

I'm not sure where I first saw that method - maybe from bits of UCC 
source code we were given in the 1980's.  I always thought those folks 
had a good, readable style of assembler coding.


As for the -16, I guessed at what it was doing but to be sure I had to 
get out my trusty hex calculator - also from the 1980's.


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


Re: S0C6 in CSRC4RG1

2018-07-18 Thread David Crayford

On 19/07/2018 12:18 AM, Charles Mills wrote:

I thought -16 was kind of cool. It took me a second, but in the future I would 
"get" an & with -8 or -4 in a heartbeat.


It just looks wrong to me ;)


I don't know that ~15 or ~0xf is any clearer. ~ always worries me a little bit 
for some reason.


Why does it worry you? To the majority of C programmers it's the natural 
way of ANDing bits.


If you put your assembler programmers hat on

flag &= ~(BIT1)

isn't too dissimilar to

NI FLAG1,X'FF'-BIT1


I probably would have coded 0xfff0 but "counting nibbles" is error-prone 
also.


Much better IMO!


Perhaps (-1) << 4 is arguably the most straightforward, but it's not obvious 
either. Perhaps put into a macro?


Personally, I find that obscure.


Charles


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of David Crayford
Sent: Wednesday, July 18, 2018 5:45 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: S0C6 in CSRC4RG1

On 18/07/2018 8:26 PM, Steve Smith wrote:

Nice...

So, you say 1s-complement is better than 2s-complement?  Is ~15 clearer
than -16?  ;-)

I say it's best to stick to the idioms of the language you're coding in :)


My "native" language is assembler, and it doesn't have an easy way to
specify the former.

Bit twiddling in C can be tricky and not as intuitive as assembler. But
it's trivial to write macros to make it easy.

--
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: What port scan does nd does not tell you

2018-07-18 Thread Seymour J Metz
>   1. Ports are only controlled from the mainframe out. Fact. `I can't do
>   anything against that.

What are , e.g., PORT, RESTRICTLOWPORTS, chopped liver? Or do you mean that 
management won't let you do anything?

> 2. SMTP (CSSMTP) server is the only authorised user of the port.

Then why does IBM document the use of sendmail?

>  3. However, SMTP is a text based protocol. 

Pretty much everything in TCP/IP other than IP and UDP is text based. So what?

>Say Hello, FROM;, TO:, text  and MINE text, and you go.

MAIL FROM:f...@bar.baz
530 5.7.0  Authentication required




--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List  on behalf of 
ITschak Mugzach 
Sent: Wednesday, July 18, 2018 12:51 PM
To: IBM-MAIN@listserv.ua.edu
Subject: Re: What port scan does nd does not tell you

Shmuel,


   1. Ports are only controlled from the mainframe out. Fact. `I can't do
   anything against that.
   2. SMTP (CSSMTP) server is the only authorised user of the port.
   3. However, SMTP is a text based protocol. Say Hello, FROM;, TO:, text
   and MINE text, and you go.

You must try it your self from and to the mainframe. As per the 2rd
question you posed, "Are the servers ... configured?" this is the one
million dollars question I and many security experts are looking at. Some
times it is, most time it's not. Thats life.

ITschak

On Wed, Jul 18, 2018 at 6:41 PM Seymour J Metz  wrote:

> I'm returning here to a previous security topic.
>
> When a port scan locates an open inbound port, that does not in itself
> indicate a security problem. What it indicates is the need to audit the use
> of that port. There are two issues that need to be investigated:
>
>  1. Is the use of the port controlled so that only authorized servers can
> use it?
>
>  2. Are the servers using that port correctly configured?
>
> As an example, it is okay to have an open port 25, but sendmail or
> whatever should be configured to require use of SMTPAUTH.
>
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>


--
ITschak Mugzach
*|** IronSphere Platform* *|* *Information Security Contiguous Monitoring
for Legacy **|  *

--
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: What port scan does nd does not tell you

2018-07-18 Thread ITschak Mugzach
Shmuel,


   1. Ports are only controlled from the mainframe out. Fact. `I can't do
   anything against that.
   2. SMTP (CSSMTP) server is the only authorised user of the port.
   3. However, SMTP is a text based protocol. Say Hello, FROM;, TO:, text
   and MINE text, and you go.

You must try it your self from and to the mainframe. As per the 2rd
question you posed, "Are the servers ... configured?" this is the one
million dollars question I and many security experts are looking at. Some
times it is, most time it's not. Thats life.

ITschak

On Wed, Jul 18, 2018 at 6:41 PM Seymour J Metz  wrote:

> I'm returning here to a previous security topic.
>
> When a port scan locates an open inbound port, that does not in itself
> indicate a security problem. What it indicates is the need to audit the use
> of that port. There are two issues that need to be investigated:
>
>  1. Is the use of the port controlled so that only authorized servers can
> use it?
>
>  2. Are the servers using that port correctly configured?
>
> As an example, it is okay to have an open port 25, but sendmail or
> whatever should be configured to require use of SMTPAUTH.
>
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>


-- 
ITschak Mugzach
*|** IronSphere Platform* *|* *Information Security Contiguous Monitoring
for Legacy **|  *

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


What port scan does nd does not tell you

2018-07-18 Thread Seymour J Metz
I'm returning here to a previous security topic.

When a port scan locates an open inbound port, that does not in itself indicate 
a security problem. What it indicates is the need to audit the use of that 
port. There are two issues that need to be investigated:

 1. Is the use of the port controlled so that only authorized servers can use 
it?

 2. Are the servers using that port correctly configured?

As an example, it is okay to have an open port 25, but sendmail or whatever 
should be configured to require use of SMTPAUTH.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

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


Re: S0C6 in CSRC4RG1

2018-07-18 Thread Charles Mills
I thought -16 was kind of cool. It took me a second, but in the future I would 
"get" an & with -8 or -4 in a heartbeat.

I don't know that ~15 or ~0xf is any clearer. ~ always worries me a little bit 
for some reason.

I probably would have coded 0xfff0 but "counting nibbles" is error-prone 
also.

Perhaps (-1) << 4 is arguably the most straightforward, but it's not obvious 
either. Perhaps put into a macro?

Charles


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of David Crayford
Sent: Wednesday, July 18, 2018 5:45 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: S0C6 in CSRC4RG1

On 18/07/2018 8:26 PM, Steve Smith wrote:
> Nice...
>
> So, you say 1s-complement is better than 2s-complement?  Is ~15 clearer
> than -16?  ;-)

I say it's best to stick to the idioms of the language you're coding in :)

> My "native" language is assembler, and it doesn't have an easy way to
> specify the former.

Bit twiddling in C can be tricky and not as intuitive as assembler. But 
it's trivial to write macros to make it easy.

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


Re: S0C6 in CSRC4RG1

2018-07-18 Thread Seymour J Metz
My native language is assembler and not all assemblers are designed for the 
S/360 line. Ones complement is awkward on HLASM, but Twos Complement is awkward 
on, e.g., COMPASS.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List  on behalf of 
Steve Smith 
Sent: Wednesday, July 18, 2018 8:26 AM
To: IBM-MAIN@listserv.ua.edu
Subject: Re: S0C6 in CSRC4RG1

Nice...

So, you say 1s-complement is better than 2s-complement?  Is ~15 clearer
than -16?  ;-)

My "native" language is assembler, and it doesn't have an easy way to
specify the former.

sas

On Wed, Jul 18, 2018 at 4:14 AM, David Crayford  wrote:

> I certainly wouldn't encourage anybody to use negative numbers for bit
> mask values!
>
> Why not just write an aligned memory allocator which stashes an extra
> pointer in a known location for easy freeing?

--
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: (OT) Good bye everyone

2018-07-18 Thread Nightwatch RenBand
"So long, and thanks for all the fish."
Entering a new phase in your life; as we used to say in the Army "Just
another opportunity to excel". I am just a few months behind you and
looking forward to it. Best of luck.

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


Re: S0C6 in CSRC4RG1

2018-07-18 Thread David Crayford
It's always best to get storage on the stack and avoid the heap if you 
can. z/OS C/C++ supports the GCC extensions that allow you to align 
storage using

variable attributes.

char buffer[1408] __attribute__((__aligned__(16))) ;  // only works in 
64-bit



On 18/07/2018 2:44 AM, Steve Smith wrote:

In assembler, STORAGE provides a BNDRY= keyword, which would be fine, but
this is a Metal C program.  malloc provides no such thing.  Don's
suggestion is doable, but it's fugly C code, and amounts to doing vascular
surgery wearing oven mitts:

*void realp = malloc(1408 + 15);
long ip = (long)realp & -16;
*Cpool p = (*CPool)ip;

Yeah, that's clear to anyone.  Although I'm sure it could be obfuscated.
Note: If you think the 1st & 3rd lines are commented out, this thread is
not for you :-)

Problems:
1. Undocumented requirement to quad-word align CPOOL anchor and/or extent
in 64-bit mode (and actually undocumented alignment requirements for all).
2. Unable to guarantee quad-word alignment with malloc.

Ugh.
sas


On Tue, Jul 17, 2018 at 1:41 PM, Don Poitras  wrote:


Add 15 bytes to whatever length you are asking for and copy the
pointer. 'And' the last nibble to 0. Voila! quad-aligned pointer. :)

--
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: S0C6 in CSRC4RG1

2018-07-18 Thread David Crayford

On 18/07/2018 8:26 PM, Steve Smith wrote:

Nice...

So, you say 1s-complement is better than 2s-complement?  Is ~15 clearer
than -16?  ;-)


I say it's best to stick to the idioms of the language you're coding in :)


My "native" language is assembler, and it doesn't have an easy way to
specify the former.


Bit twiddling in C can be tricky and not as intuitive as assembler. But 
it's trivial to write macros to make it easy.



sas

On Wed, Jul 18, 2018 at 4:14 AM, David Crayford  wrote:


I certainly wouldn't encourage anybody to use negative numbers for bit
mask values!

Why not just write an aligned memory allocator which stashes an extra
pointer in a known location for easy freeing?

--
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: S0C6 in CSRC4RG1

2018-07-18 Thread Steve Smith
Nice...

So, you say 1s-complement is better than 2s-complement?  Is ~15 clearer
than -16?  ;-)

My "native" language is assembler, and it doesn't have an easy way to
specify the former.

sas

On Wed, Jul 18, 2018 at 4:14 AM, David Crayford  wrote:

> I certainly wouldn't encourage anybody to use negative numbers for bit
> mask values!
>
> Why not just write an aligned memory allocator which stashes an extra
> pointer in a known location for easy freeing?

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


Re: S0C6 in CSRC4RG1

2018-07-18 Thread Tom Marchant
On Tue, 17 Jul 2018 12:18:22 -0400, Peter Relson wrote:

>As to have you been lucky? I guess so. You didn't show how you obtained 
>the extent area. Depending on size, some flavors of getmain will naturally 
>land on a page boundary. But others won't and would then have the default 
>of doubleword alignment.

I think it also depends on whether or not the system has USEZOSV1R9RULES 
specified as YES or NO.

-- 
Tom Marchant

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


Re: S0C6 in CSRC4RG1

2018-07-18 Thread David Crayford

Of course, don't forget to check malloc() :)

void * aligned_malloc(size_t size, size_t align)
{
    // allocate storage area with space for an extra pointer and alignment
    void * mem = malloc(size + sizeof(void*) + (align - 1));
    if (!mem) return NULL;
    // point to the start of the aligned storage to return
    void * ptr = (void **)((uintptr_t)(mem + (align - 1) + sizeof(void 
*)) & ~(align - 1));
    // store the address of the allocated memory prior to the aligned 
storage

    ((void **) ptr)[-1] = mem;
    return ptr;
}

void aligned_free(void *ptr)
{
    free(((void**) ptr)[-1]);
}

int main( int argc, char *argv[] )
{
 return 0;
}

On 18/07/2018 4:14 PM, David Crayford wrote:


void * aligned_malloc(size_t size, size_t align)
{
    // allocate storage area with space for an extra pointer and 
alignment

    void * mem = malloc(size + sizeof(void*) + (align - 1));
    // point to the start of the aligned storage
    void * ptr = (void **)((uintptr_t)(mem + (align - 1) + sizeof(void 
*)) & ~(align - 1));
    // store the address of the allocated memory prior to the aligned 
storage

    ((void **) ptr)[-1] = mem;
    return ptr;
}

void aligned_free(void *ptr)
{
    free(((void**) ptr)[-1]);
} 


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


Re: Migration from DB2 V10 to V11

2018-07-18 Thread Chopperla Vrao
For successful fallback to V10 do I need to use ERLY code of V11? I'm asking 
this as I'm getting maint missing error with V10 ERLY.

CV RAO

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of Doug
Sent: Tuesday, July 17, 2018 8:46 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Migration from DB2 V10 to V11

Look at your V11 maintenance that is applied, I vaguely recall a PTF that made 
V10 unsupported, it is out of support now. Just a thought .
Regards,
Doug

.

On Jul 17, 2018, at 08:51, Mark Jacobs - Listserv  
wrote:

Early code mismatch?



Chopperla Vrao wrote on 7/17/18 7:33 AM:
Hello
Can someone help me on DB2 V10 to V11 migration related error. So far I have 
been able to apply fallback PTF's/maintenance and migrate the catalog to V11 
CM(DSNTIJTC), till this point things were looking good. When I'm testing 
fallback to V10, started getting an error which complains about missing 
maintenance. I have checked the APAR II14660 and ran FIXCAT report, but I don't 
see anything missing. Can you please suggest additional checks which I can do 
to find the missing maintenance?

The error which I'm referring to is for non-data sharing environment

DSNX208E =DSN DSNGEDLC ATTEMPTING TO START DB2 WITH 858 AN UNSUPPORTED CODE 
LEVEL. REASON CODE 0002 MISSING MAINTENANCE: UNKNOWN CURRENT LEVEL: 
D780 VALID LEVEL(S): D680D6A5D675D6720

Thanks
CV RAO


Disclaimer: This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at 
http://www.techmahindra.com/Disclaimer.html
 
>
 externally 
http://tim.techmahindra.com/tim/disclaimer.html
 
>
 internally within TechMahindra.




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


Please be alert for any emails that may ask you for login information or 
directs you to login via a link. If you believe this message is a phish or 
aren't sure whether this message is trustworthy, please send the original 
message as an attachment to 
'phish...@meredith.com'.


--

Mark Jacobs
Time Customer Service
Global Technology Services

The standard you walk past is the standard you accept.
Lt. Gen. David Morrison


This electronic message, including any attachments, may contain proprietary, 
confidential or privileged information for the sole use of the intended 
recipient(s). You are hereby notified that any unauthorized disclosure, 
copying, distribution, or use of this message is prohibited. If you have 
received this message in error, please immediately notify the sender by reply 
e-mail and delete it.

--
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


Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html 
 externally 
http://tim.techmahindra.com/tim/disclaimer.html 
 internally within 
TechMahindra.



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


Re: Translate a ACS routine in batch

2018-07-18 Thread Gadi Ben-Avi
Thanks

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Sean Gleann
Sent: Wednesday, July 18, 2018 12:18 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Translate a ACS routine in batch

Gadi - check out "NaviQuest CLISTS and REXX EXECS" in DFSMSdfp Storage 
Administration - lots of goodies there for doing SMS-type things in batch.
Also, .SDSNSAMP(DSNTIJSS) gives a practical use example...

Sean


On 18 July 2018 at 09:22, Gadi Ben-Avi  wrote:

> There is a sample in SACBCNTL called ACBJBAC2 that show to do this.
>
> -Original Message-
> From: IBM Mainframe Discussion List  On
> Behalf Of Vernooij, Kees (ITOPT1) - KLM
> Sent: Wednesday, July 18, 2018 10:20 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Translate a ACS routine in batch
>
> You can activate an SMS configuration via an operator command (hence
> also in batch):
> SETSMS SCDS(cds dataset)
> SAVEACDS(spare cds dataset)
>
> Kees.
>
> > -Original Message-
> > From: IBM Mainframe Discussion List
> > [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Gadi Ben-Avi
> > Sent: 18 July, 2018 7:19
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Translate a ACS routine in batch
> >
> > Hi,
> > Is it possible to translate a ACS routine in Batch?
> > Is it possible to activate a SMS configuration in Batch?
> >
> > I am running z/OS v2.2.
> >
> > Thanks
> >
> > Gadi
> >
> > ? ?? ?    ?? ??? ??? ??  ? ???
> > ?? ??. ?? ,  ?? ???  ?, ???  
> > ? ?? ??? ? ?? ?? ?. ? ?  ?? ?? ??
> > ??  ??  ??? ??? ???, ?/?? ?, ? ?? ? ?
> > ? ? ?? ?? ? ??? ?/?? ?? ?? ??.
> >
> > 
> > -- For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to lists...@listserv.ua.edu with the message: INFO
> > IBM-MAIN
> 
> For information, services and offers, please visit our web site:
> http://www.klm.com. This e-mail and any attachment may contain
> confidential and privileged material intended for the addressee only.
> If you are not the addressee, you are notified that no part of the
> e-mail or any attachment may be disclosed, copied or distributed, and
> that any other action related to this e-mail or attachment is strictly
> prohibited, and may be unlawful. If you have received this e-mail by
> error, please notify the sender immediately by return e-mail, and delete this 
> message.
>
> Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or
> its employees shall not be liable for the incorrect or incomplete
> transmission of this e-mail or any attachments, nor responsible for any delay 
> in receipt.
> Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
> Dutch
> Airlines) is registered in Amstelveen, The Netherlands, with
> registered number 33014286
> 
>
> --
> 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
>

--
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: Translate a ACS routine in batch

2018-07-18 Thread Sean Gleann
Gadi - check out "NaviQuest CLISTS and REXX EXECS" in DFSMSdfp Storage
Administration - lots of goodies there for doing SMS-type things in batch.
Also, .SDSNSAMP(DSNTIJSS) gives a practical use example...

Sean


On 18 July 2018 at 09:22, Gadi Ben-Avi  wrote:

> There is a sample in SACBCNTL called ACBJBAC2 that show to do this.
>
> -Original Message-
> From: IBM Mainframe Discussion List  On Behalf
> Of Vernooij, Kees (ITOPT1) - KLM
> Sent: Wednesday, July 18, 2018 10:20 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Translate a ACS routine in batch
>
> You can activate an SMS configuration via an operator command (hence also
> in batch):
> SETSMS SCDS(cds dataset)
> SAVEACDS(spare cds dataset)
>
> Kees.
>
> > -Original Message-
> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> > On Behalf Of Gadi Ben-Avi
> > Sent: 18 July, 2018 7:19
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Translate a ACS routine in batch
> >
> > Hi,
> > Is it possible to translate a ACS routine in Batch?
> > Is it possible to activate a SMS configuration in Batch?
> >
> > I am running z/OS v2.2.
> >
> > Thanks
> >
> > Gadi
> >
> > ? ?? ?    ?? ??? ??? ??  ? ???
> > ?? ??. ?? ,  ?? ???  ?, ???  
> > ? ?? ??? ? ?? ?? ?. ? ?  ?? ?? ??
> > ??  ??  ??? ??? ???, ?/?? ?, ? ?? ? ?
> > ? ? ?? ?? ? ??? ?/?? ?? ?? ??.
> >
> > --
> > For IBM-MAIN subscribe / signoff / archive access instructions, send
> > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> 
> For information, services and offers, please visit our web site:
> http://www.klm.com. This e-mail and any attachment may contain
> confidential and privileged material intended for the addressee only. If
> you are not the addressee, you are notified that no part of the e-mail or
> any attachment may be disclosed, copied or distributed, and that any other
> action related to this e-mail or attachment is strictly prohibited, and may
> be unlawful. If you have received this e-mail by error, please notify the
> sender immediately by return e-mail, and delete this message.
>
> Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its
> employees shall not be liable for the incorrect or incomplete transmission
> of this e-mail or any attachments, nor responsible for any delay in receipt.
> Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch
> Airlines) is registered in Amstelveen, The Netherlands, with registered
> number 33014286
> 
>
> --
> 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
>

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


Re: Translate a ACS routine in batch

2018-07-18 Thread Gadi Ben-Avi
There is a sample in SACBCNTL called ACBJBAC2 that show to do this.

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Vernooij, Kees (ITOPT1) - KLM
Sent: Wednesday, July 18, 2018 10:20 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Translate a ACS routine in batch

You can activate an SMS configuration via an operator command (hence also in 
batch):
SETSMS SCDS(cds dataset)
SAVEACDS(spare cds dataset)

Kees.

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Gadi Ben-Avi
> Sent: 18 July, 2018 7:19
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Translate a ACS routine in batch
>
> Hi,
> Is it possible to translate a ACS routine in Batch?
> Is it possible to activate a SMS configuration in Batch?
>
> I am running z/OS v2.2.
>
> Thanks
>
> Gadi
>
> ? ?? ?    ?? ??? ??? ??  ? ???
> ?? ??. ?? ,  ?? ???  ?, ???  
> ? ?? ??? ? ?? ?? ?. ? ?  ?? ?? ??
> ??  ??  ??? ??? ???, ?/?? ?, ? ?? ? ?
> ? ? ?? ?? ? ??? ?/?? ?? ?? ??.
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

For information, services and offers, please visit our web site: 
http://www.klm.com. This e-mail and any attachment may contain confidential and 
privileged material intended for the addressee only. If you are not the 
addressee, you are notified that no part of the e-mail or any attachment may be 
disclosed, copied or distributed, and that any other action related to this 
e-mail or attachment is strictly prohibited, and may be unlawful. If you have 
received this e-mail by error, please notify the sender immediately by return 
e-mail, and delete this message.

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its 
employees shall not be liable for the incorrect or incomplete transmission of 
this e-mail or any attachments, nor responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch 
Airlines) is registered in Amstelveen, The Netherlands, with registered number 
33014286


--
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: S0C6 in CSRC4RG1

2018-07-18 Thread David Crayford
I certainly wouldn't encourage anybody to use negative numbers for bit 
mask values!


Why not just write an aligned memory allocator which stashes an extra 
pointer in a known location for easy freeing?


void * aligned_malloc(size_t size, size_t align)
{
    // allocate storage area with space for an extra pointer and alignment
    void * mem = malloc(size + sizeof(void*) + (align - 1));
    // point to the start of the aligned storage
    void * ptr = (void **)((uintptr_t)(mem + (align - 1) + sizeof(void 
*)) & ~(align - 1));
    // store the address of the allocated memory prior to the aligned 
storage

    ((void **) ptr)[-1] = mem;
    return ptr;
}

void aligned_free(void *ptr)
{
    free(((void**) ptr)[-1]);
}


On 18/07/2018 2:59 AM, Charles Mills wrote:

The lines beginning with * aren't C either . You want void *realp ...

Also, your second and third lines combine pretty well into one.

Cpool *p = (Cpool *)((long)realp & -16));

No one ever said system programming in C was pretty.

Charles


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Steve Smith
Sent: Tuesday, July 17, 2018 11:44 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: S0C6 in CSRC4RG1

In assembler, STORAGE provides a BNDRY= keyword, which would be fine, but
this is a Metal C program.  malloc provides no such thing.  Don's
suggestion is doable, but it's fugly C code, and amounts to doing vascular
surgery wearing oven mitts:

*void realp = malloc(1408 + 15);
long ip = (long)realp & -16;
*Cpool p = (*CPool)ip;

Yeah, that's clear to anyone.  Although I'm sure it could be obfuscated.
Note: If you think the 1st & 3rd lines are commented out, this thread is
not for you :-)

Problems:
1. Undocumented requirement to quad-word align CPOOL anchor and/or extent
in 64-bit mode (and actually undocumented alignment requirements for all).
2. Unable to guarantee quad-word alignment with malloc.

Ugh.
sas


On Tue, Jul 17, 2018 at 1:41 PM, Don Poitras  wrote:


Add 15 bytes to whatever length you are asking for and copy the
pointer. 'And' the last nibble to 0. Voila! quad-aligned pointer. :)

--
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


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


Re: Translate a ACS routine in batch

2018-07-18 Thread Gadi Ben-Avi
Thanks

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Vernooij, Kees (ITOPT1) - KLM
Sent: Wednesday, July 18, 2018 10:20 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Translate a ACS routine in batch

You can activate an SMS configuration via an operator command (hence also in 
batch):
SETSMS SCDS(cds dataset)
SAVEACDS(spare cds dataset)

Kees.

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Gadi Ben-Avi
> Sent: 18 July, 2018 7:19
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Translate a ACS routine in batch
>
> Hi,
> Is it possible to translate a ACS routine in Batch?
> Is it possible to activate a SMS configuration in Batch?
>
> I am running z/OS v2.2.
>
> Thanks
>
> Gadi
>
> ? ?? ?    ?? ??? ??? ??  ? ???
> ?? ??. ?? ,  ?? ???  ?, ???  
> ? ?? ??? ? ?? ?? ?. ? ?  ?? ?? ??
> ??  ??  ??? ??? ???, ?/?? ?, ? ?? ? ?
> ? ? ?? ?? ? ??? ?/?? ?? ?? ??.
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

For information, services and offers, please visit our web site: 
http://www.klm.com. This e-mail and any attachment may contain confidential and 
privileged material intended for the addressee only. If you are not the 
addressee, you are notified that no part of the e-mail or any attachment may be 
disclosed, copied or distributed, and that any other action related to this 
e-mail or attachment is strictly prohibited, and may be unlawful. If you have 
received this e-mail by error, please notify the sender immediately by return 
e-mail, and delete this message.

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its 
employees shall not be liable for the incorrect or incomplete transmission of 
this e-mail or any attachments, nor responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch 
Airlines) is registered in Amstelveen, The Netherlands, with registered number 
33014286


--
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: Translate a ACS routine in batch

2018-07-18 Thread Vernooij, Kees (ITOPT1) - KLM
You can activate an SMS configuration via an operator command (hence also in 
batch): 
SETSMS SCDS(cds dataset)
SAVEACDS(spare cds dataset)

Kees.

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Gadi Ben-Avi
> Sent: 18 July, 2018 7:19
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Translate a ACS routine in batch
> 
> Hi,
> Is it possible to translate a ACS routine in Batch?
> Is it possible to activate a SMS configuration in Batch?
> 
> I am running z/OS v2.2.
> 
> Thanks
> 
> Gadi
> 
> ? ?? ?    ?? ??? ??? ??  ? ???
> ?? ??. ?? ,  ?? ???  ?, ???  
> ? ?? ??? ? ?? ?? ?. ? ?  ?? ?? ??
> ??  ??  ??? ??? ???, ?/?? ?, ? ?? ? ?
> ? ? ?? ?? ? ??? ?/?? ?? ?? ??.
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

For information, services and offers, please visit our web site: 
http://www.klm.com. This e-mail and any attachment may contain confidential and 
privileged material intended for the addressee only. If you are not the 
addressee, you are notified that no part of the e-mail or any attachment may be 
disclosed, copied or distributed, and that any other action related to this 
e-mail or attachment is strictly prohibited, and may be unlawful. If you have 
received this e-mail by error, please notify the sender immediately by return 
e-mail, and delete this message.

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its 
employees shall not be liable for the incorrect or incomplete transmission of 
this e-mail or any attachments, nor responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch 
Airlines) is registered in Amstelveen, The Netherlands, with registered number 
33014286


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