Re: Who writes these things?

2019-09-26 Thread David Crayford

On 2019-09-27 12:32 PM, Jon Perryman wrote:

JavaScript OO was specifically designed around DOM.

What language features do you believe have anything to do with DOM?

If you've used javascript, you will have noticed it doesn't have "CLASS". The 
functionality exists but not in a way OO programmers would expect. There are others but 
they are much harder to explain.


ECMAScript 6 introduced classes in 2015 
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes. 
It's syntactic sugar wrapped over the prototype but everybody has 
started to use classes. Of course, you can

easily create objects in JavaScript simply by using closures.




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


Re: Tracing RACF?

2019-09-26 Thread Bruce Hewson
Hello Radoslaw,

SMS will catalog in the MASTER CATALOG. It does override the access rules. It 
really is important that ALIAS entries are defined for any GROUP or USER 
created. If the USER has access to create the dataset then SMS will catalog 
that dataset. I have plenty of evidence to this.

Can't make any statement regarding your memory loss. :D

On Thu, 26 Sep 2019 10:26:49 +0200, R.S.  wrote:

>W dniu 2019-09-26 o 06:27, Bruce Hewson pisze:
>> Hello Sean,
>>
>> SMS managed datasets must be cataloged. And if there is no ALIAS and the 
>> dataset is allocated, SMS WILL catalog the dataset in the MASTER CATALOG no 
>> matter what the security rules.
>> [...]
>
>IMHO SMS-managed dataset will NOT be cataloged in MCAT unless user has
>UPDATE to MCAT. In such scenario the dataset allocation would fail.
>For UCAT and SMS-managed dataset no authority to the UCAT is required.
>
>Fine print: my memory is failing, no warranty for the above... ;-)
>
>--
>Radoslaw Skorupka
>Lodz, Poland
>
>



Regards
Bruce

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


Re: Who writes these things?

2019-09-26 Thread Jon Perryman
 On Thursday, September 26, 2019, 01:15:42 PM PDT, Seymour J Metz wrote: 
 
 >> You are referring to XML parse tree.

> Not even close. What are you smoking? 


After looking at Perl's HTML5 DOM which came out this year, I stand corrected. 
Apparently, people are willing to put a lot of effort and time into an obscure 
seldom used browser. It's DOM object appears to be compatible with JS. Sorry 
but I've ignored these obscure browser implementations

>> Even Nodejs parses uses the XML parser instead of the HTML parser.

> There is no "the XML parser" or "the HTML parser"; 

I actually meant AN instead of THE but I think you new my intent and you just 
wanted to add to your list.

>> JavaScript OO was specifically designed around DOM. 

> What language features do you believe have anything to do with DOM? 

If you've used javascript, you will have noticed it doesn't have "CLASS". The 
functionality exists but not in a way OO programmers would expect. There are 
others but they are much harder to explain.

>> This has caused a huge debate about JavaScript being OO.

> No, what has cause a huge debate is that 
> JS doesn't satisfy the standard definitions of OO language.

Either you don't fully understand JS or OO. Which OO criteria do you think JS 
is missing? Remember, you may not like the JS implementation but it does exist. 

>> JavaScript is part of HTML.

> Repeating the claim doesn't make I true.

Ok Mr Trump. I gave you justification for my claim. Apparently I need to take 
your word on faith.


>> JavaScript could not exist outside of HTML until 2009 (nodejs). 

> I can get you a good price on a calendar for 1995, which, last I heard, is 
> earlier than 2009.

Am I supposed to take everything you say as gospel? Does that calendar include 
the date and product? Does that product still exist?

>> I never said that CSS is OO. However it does have scripting capabilities

> How do you code, e.g., a sort, in CSS?

Are you really this clueless about programming languages. You should google the 
definition of program. Or maybe it's scripting language you should google. 
Where does it say the code must provide specific capabilities (e.g. sort)?

>> Only Netscape supported javascript for web sites. >> The rest of the world 
>> only accepted JavaScript as part of HTML.

> I can get you a good price on a 1996 calendar.

Apparently repeating absolutely useless information will make us believe your 
point.

>> You missed my point which is the definition of "macro" which you said has 
>> not changed since 1950.

> Whoosh! Which part of "first hit" don't you understand. 
> THE FIRST HIT MATCHED THE DEFINITION FROM THE 1950S.


You really should catch up with the times. What meaning do you think "first 
hit" has in regards to Googles search engine AI? It did not turn up in my 
results as far as I was willing to look. To make matters worse, you say things 
like search google #def #if. #def is clearly misspelled and googles AI often 
corrects this to real words instead of special phrases (e.g. #define). 


>> What main stream languages prior to C (1970) used the word "macro" in the 
>> same way as C?

> PL/I. Pretty much every mainframe assembler. 
> OTOH, I've never seen anybody but you refer to COPY or INCLUDE s macro 
> facilities.

> When did "macro" go from "special purpose command language" to being "copy"? 


I used copy and include as an analogy. Clearly you haven't used C macro's much 
otherwise you would have understood the analogy, said #define instead of #def 
and known that #if is not valid in a C macro.

PL1 and assembler clearly have a proper macro language. You said prior to 1970 
there were languages with a macro language similar to the C implementation. 
What is that language.

Jon.  

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


Re: Who writes these things?

2019-09-26 Thread David Crayford

On 2019-09-27 2:05 AM, Jon Perryman wrote:

  On Wednesday, September 25, 2019, 02:44:14 AM PDT, David Crayford wrote:
  

Are you talking about the DOM?  The definition of OO typically refers to
languages that support polymorphism, inheritance and encapsulation. HTML
is basically a markup language.

I'm talking about the DOM object instead of DOM (Document Object Model). The 
"on" event methods meet encapsulation (methods/functions associated to the 
object) and polymorphism (different object types support the same interfaces). Since HTML 
is a set of internally predefined classes (e.g. body,  input and many more). If HTML ever 
externalizes classes, then inheritance would become a factor.

This assumes Javascript and CSS are not part of the HTML language.


They're not. They have completely different language standards and can 
be used independently of HTML. CSS is used in JavaFX and Android to 
style desktop and phone GUIs using a different form of XML.



By this logic, C++ is actually 2 separate languages (C and C++) but no one ever 
makes this distinction.


I make the distinction. They are most certainly two separate languages 
and evolving in very different directions. I've programmed 
professionally in both for 20+ years so I'm fully cognizant of the 
differences.
Modern C++ makes heavy use of generics (templates) and over the last 
decade is moving towards the functional programming paradigm with 
features such as lambda's and algebraic data types.




Do you consider HTML's '' fundamentally 
different to C++'s 'input::onclick { some C }'? In C++, does C deviate from the C language? 
What is it that makes you think C++ is a single language but HTML/javascript/CSS are separate 
unrelated languages other than they don't follow traditional concepts?


I don't consider them equivalent.



Up until  2009, JavaScript was not valid outside of HTML.


Mozilla released Rhino way back in 1998.



Jon.

--
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: Who writes these things?

2019-09-26 Thread Gord Tomlin

On 2019-09-26 19:07, Jon Perryman wrote:

Seriously! The most sophisticated C macro possible is "#DEFINE MYMAC  B C D ". Calling the macro 
"A  MYMAC Y" results in "A B C D E". Additional macro substitution could occur for B, C 
or D if they exist. How is this anything more than copy?


C/C++ supports function-like macros that accept parameters and can be 
used to generate large blocks of code if desired. There are good reasons 
for not doing this, but the capability exists.


The following example program contains two macro definitions and a macro 
invocation that refers to both of the defined macros:


CCNRAA8

/**This example illustrates #define directives.**/

void printf(const char*, ...);
#define SQR(s)  ((s) * (s))
#define PRNT(a,b) \
  printf("value 1 = %d\n", a); \
  printf("value 2 = %d\n", b)

int main(void)
{
  int x = 2;
  int y = 3;

 PRNT(SQR(x),y);

  return(0);
}

Example lifted from
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.cbclx01/define.htm

--

Regards, Gord Tomlin
Action Software International
(a division of Mazda Computer Corporation)
Tel: (905) 470-7113, Fax: (905) 470-6507
Support: https://actionsoftware.com/support/

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


Re: Who writes these things?

2019-09-26 Thread Jon Perryman
 On Thursday, September 26, 2019, 12:31:23 PM PDT, Seymour J Metz 
 wrote: 
> The definition of macro has never been the same as copy. 
 

Seriously! The most sophisticated C macro possible is "#DEFINE MYMAC  B C D ". 
Calling the macro "A  MYMAC Y" results in "A B C D E". Additional macro 
substitution could occur for B, C or D if they exist. How is this anything more 
than copy? 

If you find a complicated C macro, please remove the C code before forwarding 
it. I may have overlooked something but I think it will result in the 
substitution logic described above.


> Google for, e.g., #def, #if.


I wish you could google. You would find that #IF cannot be used in a C macro 
(#DEFINE). C macro's only allow C code and C macro calls. #IF is in fact a 
preprocessor directive and are outside the scope of macro's. There are reason's 
that C macro's are strongly discouraged except in specific situations.

> I don't know what you consider to be the "current" definition, 
> but the first hit that I got ha nothing to do with copy books., nor do macros 
> in C. 


I'm flexible. Use any definition for macro where C macro's meet the 
requirement. How do copy books not meet this definition?


Jon.  

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


Re: Control block values that exempt 522 Timeouts

2019-09-26 Thread Seymour J Metz
Somehow I deleted the text of my reply. The significance of 1440 has nothing to 
do with the clock cycle; it's the number of minutes in a day.


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



From: IBM Mainframe Discussion List  on behalf of 
Lindy Mayfield 
Sent: Thursday, September 26, 2019 10:53 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Control block values that exempt 522 Timeouts

It could have been hardware related based on clock speed on early machines.

Perhaps it's more appropriate ask this on the RACF group.

/Lindy

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Mike Schwab
Sent: tiistai 17. syyskuuta 2019 18.35
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Control block values that exempt 522 Timeouts

EXTERNAL

Well, if that represents 24 hours then 2555 is 1 second.

On Tue, Sep 17, 2019 at 8:09 AM Lindy Mayfield  wrote:
>
> Hi,
>
> I understand that address spaces can be made exempt from 522 timeouts if 
> there is a particular value in one of three control blocks.  If I have it 
> correct they are:
>
> 1) The JSTL is 86400 seconds (Comes from TIME=1440 on Job card?)
> 2) The ASCBTOFF bit in the ASCBRCTF is set
> 3) The SWTL contains the magic number x'0D286880'
>
> What can I learn from one or more of those values being set?  For example, 
> which z/OS or application components update those control blocks or cause 
> them to be updated?
>
> Thanks in advance for any insight!
>
> Kind regards,
> Lindy
>
> P.S.  I think I asked some years ago where they magic number x'0D286880' 
> comes from.  I forgot. I think it was historical, and maybe counted in 
> timerons or something similar.
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

--
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: Who writes these things?

2019-09-26 Thread Seymour J Metz
DOM is not HTML, it's a representation of HTML files. HTML doesn't have 
classes. 

Your analogy is bogus. The C preprocessor is defined in the same document as 
the rest of the language; that's not the case with DOM, HTML and JavaScript. 
And server side scripts were available outside of Netscape in 1996.


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



From: IBM Mainframe Discussion List  on behalf of Jon 
Perryman 
Sent: Thursday, September 26, 2019 2:05 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Who writes these things?

 On Wednesday, September 25, 2019, 02:44:14 AM PDT, David Crayford wrote:

> Are you talking about the DOM?  The definition of OO typically refers to

> languages that support polymorphism, inheritance and encapsulation. HTML

> is basically a markup language.

I'm talking about the DOM object instead of DOM (Document Object Model). The 
"on" event methods meet encapsulation (methods/functions associated to the 
object) and polymorphism (different object types support the same interfaces). 
Since HTML is a set of internally predefined classes (e.g. body,  input and 
many more). If HTML ever externalizes classes, then inheritance would become a 
factor.

This assumes Javascript and CSS are not part of the HTML language. By this 
logic, C++ is actually 2 separate languages (C and C++) but no one ever makes 
this distinction. Do you consider HTML's '' 
fundamentally different to C++'s 'input::onclick { some C }'? In C++, does C 
deviate from the C language? What is it that makes you think C++ is a single 
language but HTML/javascript/CSS are separate unrelated languages other than 
they don't follow traditional concepts? Up until  2009, JavaScript was not 
valid outside of HTML.

Jon.

--
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: Who writes these things?

2019-09-26 Thread Seymour J Metz
> You are referring to XML parse tree.

Not even close.

What are you smoking? 

> Even Nodejs parses uses the XML parser instead of the HTML parser.

There is no "the XML parser" or "the HTML parser"; there are many HTML and XML 
parsers.

> JavaScript OO was specifically designed around DOM. 

What language features do you believe have anything to do with DOM? Also, the 
Perl packages HTML::DOM and XML::DOM handle DOM just fine; does that make Perl 
part of HTML?

> This has caused a huge debate about JavaScript being OO.

No, what has cause a huge debate is that JS doesn't satisfy the standard 
definitions of OO language.

> JavaScript is part of HTML.

Repeating the claim doesn't make I true.

> JavaScript could not exist outside of HTML until 2009 (nodejs). 

I can get you a good price on a calendar for 1995, which, last I heard, is 
earlier than 2009.

> I never said that CSS is OO. However it does have scripting capabilities

How do you code, e.g., a sort, in CSS?

> Only Netscape supported javascript for web sites. The rest of the world only 
> accepted JavaScript as part of HTML.

I can get you a good price on a 1996 calendar.

> You missed my point which is the definition of "macro" which you said has not 
> changed since 1950.

Whoosh! Which part of "first hit" don't you understand. THE FIRST HIT MATCHED 
THE DEFINITION FROM THE 1950S.

> What main stream languages prior to C (1970) used the word "macro" in the 
> same way as C?

PL/I. Pretty much every mainframe assembler. OTOH, I've never seen anybody but 
you refer to COPY or INCLUDE s macro facilities.

> When did "macro" go from "special purpose command language" to being "copy"? 

It never meant "special purpose command language"; closest to that I've ever 
seen was the term "keyboard macro"?

> Did we eventually just accept the C definition of "macro" because of it's 
> wide spread use?

Not unless there is a time machine involved; we accepted the definition two 
decades before C.

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



From: IBM Mainframe Discussion List  on behalf of Jon 
Perryman 
Sent: Thursday, September 26, 2019 2:21 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Who writes these things?

 On Wednesday, September 25, 2019, 11:13:19 AM PDT, Seymour J Metz wrote:
 > The format of an HTML parse tree constructed by,
> e.g., a Perl program, is not compatible with JavaScript.

You are referring to XML parse tree. HTML parse tree's do not exist outside web 
browsers. Even Nodejs parses uses the XML parser instead of the HTML parser.
> The objects and attributes of HTML have nothing to do with the things > 
> called objects and attributes in an OO language.

Sure they do. JavaScript OO was specifically designed around DOM. This has 
caused a huge debate about JavaScript being OO. The argument is about OO 
enforcement which had to be lax because of the DOM design.

JavaScript is part of HTML. JavaScript could not exist outside of HTML until 
2009 (nodejs). JavaScripts OO was designed around the DOM object created by 
browsers from the HTML. The DOM has "on" events which could not run outside of 
HTML up to 2009. JavaScript OO was developed to support DOM.

Are you saying the seats in your car are not part of your car?

> CSS is not even Turing complete, much less an OO language or a scripting 
> language.


I never said that CSS is OO. However it does have scripting capabilities that 
are not obvious which I mentioned in a previous email. Just like javascript, 
CSS is part of HTML. It is only accessible and usable in HTML.

> JavaScript was created as a Scripting language for web sites;
> not as an extension of HTML.

Only Netscape supported javascript for web sites. The rest of the world only 
accepted JavaScript as part of HTML.

> IBM never referred to copy books as macro instructions

You missed my point which is the definition of "macro" which you said has not 
changed since 1950. What main stream languages prior to C (1970) used the word 
"macro" in the same way as C? Everyone understands "copy book" functionality. I 
referenced "copy book" because it's similar to C "macro" functionality.

When did "macro" go from "special purpose command language" to being "copy"? 
Did we eventually just accept the C definition of "macro" because of it's wide 
spread use?


In the end, this is all just terminology. In the end, I've learned to just 
accept that groups definition and move forward

Jon.

--
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: Who writes these things?

2019-09-26 Thread Jeremy Nicoll
On Thu, 26 Sep 2019, at 19:36, Jon Perryman wrote:

>  Was the definition of 
> "macro" always the same as "copy"? 

No.  Perhaps you should read through:

https://en.wikipedia.org/wiki/Macro_(computer_science)
and
https://en.wikipedia.org/wiki/General-purpose_macro_processor

An early far from simplistic macro language was ML/1 - see eg
https://en.wikipedia.org/wiki/ML/I

-- 
Jeremy Nicoll - my opinions are my own.

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


Re: Who writes these things?

2019-09-26 Thread Seymour J Metz
That's Seymour.

I don't know what you consider to be the "current" definition, but the first 
hit that I got ha nothing to do with copy books., nor do macros in C. 

Google for, e.g., #def, #if.

The definition of macro has never been the same as copy.


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



From: IBM Mainframe Discussion List  on behalf of Jon 
Perryman 
Sent: Thursday, September 26, 2019 2:36 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Who writes these things?

 On Wednesday, September 25, 2019, 07:05:47 PM PDT, Clark Morris wrote:

 >> Copy books cam in with Jovial, well before 1970.
>> Assemblers had COPY instructions in the 1960s.
>> PL/I had the %INCLUDE statement in the 1960s. By 1970 it was old hat.
> COBOL D on DOS/360 had copybooks in 1966 or earlier.


Sorry for the confusion. I was referring to the current internet definition of 
"macro" which Seymore said existed since 1950. C macro's (1970) are similar 
functionality to copy books. Was the definition of "macro" always the same as 
"copy"?

Jon.

--
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: Who writes these things?

2019-09-26 Thread Jon Perryman
 On Wednesday, September 25, 2019, 07:05:47 PM PDT, Clark Morris wrote:
 
 >> Copy books cam in with Jovial, well before 1970.
>> Assemblers had COPY instructions in the 1960s.
>> PL/I had the %INCLUDE statement in the 1960s. By 1970 it was old hat.
> COBOL D on DOS/360 had copybooks in 1966 or earlier.


Sorry for the confusion. I was referring to the current internet definition of 
"macro" which Seymore said existed since 1950. C macro's (1970) are similar 
functionality to copy books. Was the definition of "macro" always the same as 
"copy"? 

Jon.  

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


Re: Who writes these things?

2019-09-26 Thread Jon Perryman
 On Wednesday, September 25, 2019, 11:13:19 AM PDT, Seymour J Metz wrote: 
 > The format of an HTML parse tree constructed by, 
> e.g., a Perl program, is not compatible with JavaScript. 

You are referring to XML parse tree. HTML parse tree's do not exist outside web 
browsers. Even Nodejs parses uses the XML parser instead of the HTML parser.
> The objects and attributes of HTML have nothing to do with the things > 
> called objects and attributes in an OO language.

Sure they do. JavaScript OO was specifically designed around DOM. This has 
caused a huge debate about JavaScript being OO. The argument is about OO 
enforcement which had to be lax because of the DOM design. 

JavaScript is part of HTML. JavaScript could not exist outside of HTML until 
2009 (nodejs). JavaScripts OO was designed around the DOM object created by 
browsers from the HTML. The DOM has "on" events which could not run outside of 
HTML up to 2009. JavaScript OO was developed to support DOM. 

Are you saying the seats in your car are not part of your car?

> CSS is not even Turing complete, much less an OO language or a scripting 
> language.


I never said that CSS is OO. However it does have scripting capabilities that 
are not obvious which I mentioned in a previous email. Just like javascript, 
CSS is part of HTML. It is only accessible and usable in HTML. 

> JavaScript was created as a Scripting language for web sites; 
> not as an extension of HTML. 

Only Netscape supported javascript for web sites. The rest of the world only 
accepted JavaScript as part of HTML.

> IBM never referred to copy books as macro instructions

You missed my point which is the definition of "macro" which you said has not 
changed since 1950. What main stream languages prior to C (1970) used the word 
"macro" in the same way as C? Everyone understands "copy book" functionality. I 
referenced "copy book" because it's similar to C "macro" functionality. 

When did "macro" go from "special purpose command language" to being "copy"? 
Did we eventually just accept the C definition of "macro" because of it's wide 
spread use?


In the end, this is all just terminology. In the end, I've learned to just 
accept that groups definition and move forward

Jon.  

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


Re: casting with XL C\C++ compiler

2019-09-26 Thread Joseph Reichman
Using struct in the cast resolved the issue 

Where buffer char[1200]
Where struct record
{
...
...
};
Struct record *recordptr;

recordptr = (struct record *)






> On Sep 26, 2019, at 1:11 PM, retired mainframer  
> wrote:
> 
> Maybe you would like to show us some real code?
> 
>> -Original Message-
>> From: IBM Mainframe Discussion List  On
>> Behalf Of Joseph Reichman
>> Sent: Thursday, September 26, 2019 8:40 AM
>> To: IBM-MAIN@LISTSERV.UA.EDU
>> Subject: casting with XL C\C++ compiler
>> 
>> Hi
>> 
>> Seems like a lot the casting I was able to do with the Visual Studio C\C++
>> compiler I am not able to do with XL C\C++ compiler
>> 
>> A  specific case  struct * pointer the I would like to assign a char[1200]
>> via Struct pointer *
>> 
>> Buffer char[1200]
> 
> This should have generated an error also.  Perhaps you meant
>char Buffer[1200]; 
> 
>> pointer =  (pointer) generates an error
> 
> Assuming that you simply omitted the definition of pointer, something like
>   struct x *pointer;
> then the assignment would look like
>pointer = (struct x*)Buffer;
> 
> While the & doesn't hurt in this case, it is superfluous because Buffer is
> an array.  But since C is case sensitive, buffer is completely different
> from Buffer.
> 
>> any guidance appreciated
> 
> --
> 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: Who writes these things?

2019-09-26 Thread Jon Perryman
 On Wednesday, September 25, 2019, 02:44:14 AM PDT, David Crayford wrote:
 
> Are you talking about the DOM?  The definition of OO typically refers to 

> languages that support polymorphism, inheritance and encapsulation. HTML 

> is basically a markup language.  

I'm talking about the DOM object instead of DOM (Document Object Model). The 
"on" event methods meet encapsulation (methods/functions associated to the 
object) and polymorphism (different object types support the same interfaces). 
Since HTML is a set of internally predefined classes (e.g. body,  input and 
many more). If HTML ever externalizes classes, then inheritance would become a 
factor.

This assumes Javascript and CSS are not part of the HTML language. By this 
logic, C++ is actually 2 separate languages (C and C++) but no one ever makes 
this distinction. Do you consider HTML's '' 
fundamentally different to C++'s 'input::onclick { some C }'? In C++, does C 
deviate from the C language? What is it that makes you think C++ is a single 
language but HTML/javascript/CSS are separate unrelated languages other than 
they don't follow traditional concepts? Up until  2009, JavaScript was not 
valid outside of HTML.

Jon.

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


Re: casting with XL C\C++ compiler

2019-09-26 Thread retired mainframer
Maybe you would like to show us some real code?

> -Original Message-
> From: IBM Mainframe Discussion List  On
> Behalf Of Joseph Reichman
> Sent: Thursday, September 26, 2019 8:40 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: casting with XL C\C++ compiler
> 
> Hi
> 
> Seems like a lot the casting I was able to do with the Visual Studio C\C++
> compiler I am not able to do with XL C\C++ compiler
> 
> A  specific case  struct * pointer the I would like to assign a char[1200]
> via Struct pointer *
> 
> Buffer char[1200]
 
This should have generated an error also.  Perhaps you meant
char Buffer[1200]; 
 
> pointer =  (pointer) generates an error

Assuming that you simply omitted the definition of pointer, something like
   struct x *pointer;
then the assignment would look like
pointer = (struct x*)Buffer;

While the & doesn't hurt in this case, it is superfluous because Buffer is
an array.  But since C is case sensitive, buffer is completely different
from Buffer.
 
> any guidance appreciated

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


Re: casting with XL C\C++ compiler

2019-09-26 Thread Allan Kielstra
The first bit of guidance is ...  Don't Do That!!

I could not quite figure out what you meant, but this compiled for me with no 
errors
struct S
   {
   int i;
   };

void X()
   {
   S * p;
   char Buffer[1000];

   p = (S *) Buffer;
   p = reinterpret_cast(Buffer);
   // no way static_cast will work here!  (And it should not)
   }

using
xlC -qversion
z/OS V2.3 XL C/C++

Don't forget that if you try to defeat the type system with casts, you should 
use the NOANSIALIAS option is compiling with optimization.

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


Re: casting with XL C\C++ compiler

2019-09-26 Thread Paul Gilmartin
On Thu, 26 Sep 2019 11:40:17 -0400, Joseph Reichman wrote:
>
>Seems like a lot the casting I was able to do with the Visual Studio C\C++
>compiler I am not able to do with XL C\C++ compiler>
>
>A  specific case  struct * pointer the I would like to assign a char[1200]
>via Struct pointer *
>
>Buffer char[1200]
> 
Doesn't the type go before the identifier being declared?

>pointer =  (pointer) generates an error
>
Shouldn't the cast contain a type rather than a variable?

-- gil

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


casting with XL C\C++ compiler

2019-09-26 Thread Joseph Reichman
Hi 

 

Seems like a lot the casting I was able to do with the Visual Studio C\C++
compiler I am not able to do with XL C\C++ compiler

 

A  specific case  struct * pointer the I would like to assign a char[1200]
via Struct pointer * 

 

Buffer char[1200]

 

pointer =  (pointer) generates an error

 

any guidance appreciated

 

thanks 


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


Re: Xpediter: Same Debugger from Competing Vendors???

2019-09-26 Thread Seymour J Metz
Yes, SVC 51 was type 4, and, no, it did not have a WTG table. The transient 
area in OS/360 was 1 KiB; in OS/VS1 it was 2 KiB and there were no transient 
areas in OS/VS2.


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



From: IBM Mainframe Discussion List  on behalf of 
Giliad Wilf <00d50942efa9-dmarc-requ...@listserv.ua.edu>
Sent: Wednesday, September 25, 2019 6:22 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Xpediter: Same Debugger from Competing Vendors???

On Wed, 25 Sep 2019 15:39:40 +, Seymour J Metz  wrote:

Well, SVC51 is a type-4 SVC and was comprised of several IGCnn05A pieces.
I think there was a limit for the size of a single piece back at MVT R21 days, 
of 1K, or maybe 2K and it had to fit into something called "transient area".
You could not do much with just 1K or 2K.
Currently, there is no limit on the size of a type-4 svc...

>WTG tables are characteristic of O/C/EOV; most type 4 SVC  routines didn't 
>have one.


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



From: IBM Mainframe Discussion List  on behalf of 
Giliad Wilf <00d50942efa9-dmarc-requ...@listserv.ua.edu>
Sent: Wednesday, September 25, 2019 9:29 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Xpediter: Same Debugger from Competing Vendors???

On Tue, 24 Sep 2019 20:29:18 -0500, David Staudacher  
wrote:

If memory serves me right, the roots of Xpediter-type software are in a shop 
that wrote a module that had been inserted into SVC51's (SDUMP) control flow.

In those days a large SVC routine was comprised of several pieces, each having 
a WTG (Where-To-Go) table at the end, comprised of several entries, with each 
entry containing the name and TTR of the next piece to be loaded and given 
control, based on decision made in the current piece.

The shop wrote a new piece to be the 3rd to be given control on SVC51's flow, 
and redirected processing to code that enhanced debugging, then returned to the 
appropriate point on the normal flow through its own WTG table.

A special utility IEHIOSUP had to be invoked to refit TTRs on modules' WTG 
tables after applying PTFs.

>Earliest reference yet to "ADS Xpediter" - October 26, 1981 (lower left of 
>page):
>http://secure-web.cisco.com/1uz-ox0PtaceSDeJuoNSnNZoWqfJhe5dAFCOUVYFUqK1qVk3pt4Zntiik0DcJLgVKzDNXQkBO0o2FRBN6hvY2_sdNZ7j_kA6zhXDUmBLQC7lg_i6erF5wVGM1HhBwm9B4Je3WujW2RMdbJqWxFWdl_2x4TzTf1_qN_WpaWdWhF4p2Ez5UUvRKgBAp8QSKQCR8jByjhNgqJwonwEgNuyqyKd55oR5ay3vCdIRfPZsxi01X5U89oXHLx9svqwQXLq6ZBDlaprv3dGZ4igk88ShV01agkRAhCvnk7KNyjx-JGE6asv0F8E6_kY5a4E_wnLyGJsoy9L1rpDSwwoSmIMPba3bgqOGLpG2GgsC4XcyEhH6GfwaLQCP5gL12-fnk3at2L7-6CLwMLxgO4MF40Ygo_ULQstiWlT61-KvRK2k8azdLDy6B_CJKkfKCKi18bM_8/http%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3D1REkdf3I86oC%26pg%3DPA46
>
>--
>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

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


Re: Control block values that exempt 522 Timeouts

2019-09-26 Thread Seymour J Metz



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



From: IBM Mainframe Discussion List  on behalf of 
Lindy Mayfield 
Sent: Thursday, September 26, 2019 10:53 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Control block values that exempt 522 Timeouts

It could have been hardware related based on clock speed on early machines.

Perhaps it's more appropriate ask this on the RACF group.

/Lindy

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Mike Schwab
Sent: tiistai 17. syyskuuta 2019 18.35
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Control block values that exempt 522 Timeouts

EXTERNAL

Well, if that represents 24 hours then 2555 is 1 second.

On Tue, Sep 17, 2019 at 8:09 AM Lindy Mayfield  wrote:
>
> Hi,
>
> I understand that address spaces can be made exempt from 522 timeouts if 
> there is a particular value in one of three control blocks.  If I have it 
> correct they are:
>
> 1) The JSTL is 86400 seconds (Comes from TIME=1440 on Job card?)
> 2) The ASCBTOFF bit in the ASCBRCTF is set
> 3) The SWTL contains the magic number x'0D286880'
>
> What can I learn from one or more of those values being set?  For example, 
> which z/OS or application components update those control blocks or cause 
> them to be updated?
>
> Thanks in advance for any insight!
>
> Kind regards,
> Lindy
>
> P.S.  I think I asked some years ago where they magic number x'0D286880' 
> comes from.  I forgot. I think it was historical, and maybe counted in 
> timerons or something similar.
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
1440 has nothing to do with clock speed. 1440 = 60 * 24.


--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

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


DB2LUW forum?

2019-09-26 Thread Nai, Dean
Anyone know if there is a DB2LUW forum like this one...thanks

Dean Nai




>

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


Re: Control block values that exempt 522 Timeouts

2019-09-26 Thread Lindy Mayfield
I found the old post!  I think it has most what I need.  I didn't find it 
before, but now I did, I should have looked harder, mea culpa. 

/lindy

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Massimo Biancucci
Sent: torstai 26. syyskuuta 2019 18.05
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Control block values that exempt 522 Timeouts

EXTERNAL

Hi,

I think you gave the main answer 

TIME=1440 (or NOLIMIT) on JCL.

AFAIK, there're monitor product (like BMC SYSPROG Services for instance) that 
can update the value on the fly.

Regards.
Max

Il giorno mar 17 set 2019 alle ore 15:09 Lindy Mayfield < 
lindy.mayfi...@sas.com> ha scritto:

> Hi,
>
> I understand that address spaces can be made exempt from 522 timeouts 
> if there is a particular value in one of three control blocks.  If I 
> have it correct they are:
>
> 1) The JSTL is 86400 seconds (Comes from TIME=1440 on Job card?)
> 2) The ASCBTOFF bit in the ASCBRCTF is set
> 3) The SWTL contains the magic number x'0D286880'
>
> What can I learn from one or more of those values being set?  For 
> example, which z/OS or application components update those control 
> blocks or cause them to be updated?
>
> Thanks in advance for any insight!
>
> Kind regards,
> Lindy
>
> P.S.  I think I asked some years ago where they magic number x'0D286880'
> comes from.  I forgot. I think it was historical, and maybe counted in 
> timerons or something similar.
>
> --
> 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: Control block values that exempt 522 Timeouts

2019-09-26 Thread Lindy Mayfield
Not funny. ☹

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Steve Beaver
Sent: torstai 26. syyskuuta 2019 18.05
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Control block values that exempt 522 Timeouts

EXTERNAL

Talk to your MVS people

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Lindy Mayfield
Sent: Thursday, September 26, 2019 9:54 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Control block values that exempt 522 Timeouts

It could have been hardware related based on clock speed on early machines.

Perhaps it's more appropriate ask this on the RACF group.

/Lindy

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Mike Schwab
Sent: tiistai 17. syyskuuta 2019 18.35
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Control block values that exempt 522 Timeouts

EXTERNAL

Well, if that represents 24 hours then 2555 is 1 second.

On Tue, Sep 17, 2019 at 8:09 AM Lindy Mayfield  wrote:
>
> Hi,
>
> I understand that address spaces can be made exempt from 522 timeouts if 
> there is a particular value in one of three control blocks.  If I have it 
> correct they are:
>
> 1) The JSTL is 86400 seconds (Comes from TIME=1440 on Job card?)
> 2) The ASCBTOFF bit in the ASCBRCTF is set
> 3) The SWTL contains the magic number x'0D286880'
>
> What can I learn from one or more of those values being set?  For example, 
> which z/OS or application components update those control blocks or cause 
> them to be updated?
>
> Thanks in advance for any insight!
>
> Kind regards,
> Lindy
>
> P.S.  I think I asked some years ago where they magic number x'0D286880' 
> comes from.  I forgot. I think it was historical, and maybe counted in 
> timerons or something similar.
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send 
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

--
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: Control block values that exempt 522 Timeouts

2019-09-26 Thread Massimo Biancucci
Hi,

I think you gave the main answer 

TIME=1440 (or NOLIMIT) on JCL.

AFAIK, there're monitor product (like BMC SYSPROG Services for instance)
that can update the value on the fly.

Regards.
Max

Il giorno mar 17 set 2019 alle ore 15:09 Lindy Mayfield <
lindy.mayfi...@sas.com> ha scritto:

> Hi,
>
> I understand that address spaces can be made exempt from 522 timeouts if
> there is a particular value in one of three control blocks.  If I have it
> correct they are:
>
> 1) The JSTL is 86400 seconds (Comes from TIME=1440 on Job card?)
> 2) The ASCBTOFF bit in the ASCBRCTF is set
> 3) The SWTL contains the magic number x'0D286880'
>
> What can I learn from one or more of those values being set?  For example,
> which z/OS or application components update those control blocks or cause
> them to be updated?
>
> Thanks in advance for any insight!
>
> Kind regards,
> Lindy
>
> P.S.  I think I asked some years ago where they magic number x'0D286880'
> comes from.  I forgot. I think it was historical, and maybe counted in
> timerons or something similar.
>
> --
> 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: Control block values that exempt 522 Timeouts

2019-09-26 Thread Steve Beaver
Talk to your MVS people

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Lindy Mayfield
Sent: Thursday, September 26, 2019 9:54 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Control block values that exempt 522 Timeouts

It could have been hardware related based on clock speed on early machines.

Perhaps it's more appropriate ask this on the RACF group.

/Lindy

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Mike Schwab
Sent: tiistai 17. syyskuuta 2019 18.35
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Control block values that exempt 522 Timeouts

EXTERNAL

Well, if that represents 24 hours then 2555 is 1 second.

On Tue, Sep 17, 2019 at 8:09 AM Lindy Mayfield  wrote:
>
> Hi,
>
> I understand that address spaces can be made exempt from 522 timeouts if 
> there is a particular value in one of three control blocks.  If I have it 
> correct they are:
>
> 1) The JSTL is 86400 seconds (Comes from TIME=1440 on Job card?)
> 2) The ASCBTOFF bit in the ASCBRCTF is set
> 3) The SWTL contains the magic number x'0D286880'
>
> What can I learn from one or more of those values being set?  For example, 
> which z/OS or application components update those control blocks or cause 
> them to be updated?
>
> Thanks in advance for any insight!
>
> Kind regards,
> Lindy
>
> P.S.  I think I asked some years ago where they magic number x'0D286880' 
> comes from.  I forgot. I think it was historical, and maybe counted in 
> timerons or something similar.
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send 
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

--
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: Control block values that exempt 522 Timeouts

2019-09-26 Thread Lindy Mayfield
It could have been hardware related based on clock speed on early machines.

Perhaps it's more appropriate ask this on the RACF group.

/Lindy

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Mike Schwab
Sent: tiistai 17. syyskuuta 2019 18.35
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Control block values that exempt 522 Timeouts

EXTERNAL

Well, if that represents 24 hours then 2555 is 1 second.

On Tue, Sep 17, 2019 at 8:09 AM Lindy Mayfield  wrote:
>
> Hi,
>
> I understand that address spaces can be made exempt from 522 timeouts if 
> there is a particular value in one of three control blocks.  If I have it 
> correct they are:
>
> 1) The JSTL is 86400 seconds (Comes from TIME=1440 on Job card?)
> 2) The ASCBTOFF bit in the ASCBRCTF is set
> 3) The SWTL contains the magic number x'0D286880'
>
> What can I learn from one or more of those values being set?  For example, 
> which z/OS or application components update those control blocks or cause 
> them to be updated?
>
> Thanks in advance for any insight!
>
> Kind regards,
> Lindy
>
> P.S.  I think I asked some years ago where they magic number x'0D286880' 
> comes from.  I forgot. I think it was historical, and maybe counted in 
> timerons or something similar.
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send 
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

--
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: Tracing RACF?

2019-09-26 Thread Robert S. Hansel (RSH)
Allan,

Replacing UACC with ID(*) access is not best practice in every case. If, as Tom 
suggested, you put entries in the Global Access Table (GAT) for the catalogs, 
as I too would recommend, such entries allow the equivalent of UACC access. To 
ensure consistency, I prefer to set profile UACCs to match the access granted 
by corresponding GAT entries.

Regards, Bob

Robert S. Hansel
Lead RACF Specialist
RSH Consulting, Inc.
617-969-8211
www.linkedin.com/in/roberthansel
www.twitter.com/RSH_RACF
www.rshconsulting.com

-Original Message-
Date:Wed, 25 Sep 2019 14:33:40 +
From:Allan Staller 
Subject: Re: Tracing RACF?

That is not considered a good practice in RACF circles.
The best practice would be:

MCAT  - UACC(NONE) READ(*)   ALTER(sysprogs) (note: No update access except 
via sysprogs)
UCAT - UACC(NONE)  UPDATE(*)   ALTER(sysprogs)

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of Tom 
Conley
Sent: Wednesday, September 25, 2019 9:29 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Tracing RACF?

On 9/25/2019 9:57 AM, Joao Bentes wrote:
> Hi,
>
> If memory serves me right, as long as you have ALTER to the dataset,
> you need update to the catalog in order to create it, but you do not
> need any access to the catalog in order to delete it.
>
> Best Regards
>
>
> "Do the difficult things while they are easy and do the great things
> while they are small. A journey of a thousand miles must begin with a
> single step."
> Laozi
>
>
>
> From:   Sean Gleann 
> To: IBM-MAIN@LISTSERV.UA.EDU
> Date:   2019-09-25 12:06
> Subject:[EXTERNAL] Tracing RACF?
> Sent by:IBM Mainframe Discussion List 
>
>
>
> Following a set of somewhat distressing events here, I discovered -
> the hard way - that our master catalog was poorly protected, and so I
> now have to fix it. The situation is that all users of the my system
> can create, read, write, update, delete files that are cataloged in the 
> MasterCat.
>
> The original intention was that each user-id is defined in the MCat as
> an alias that points to one of several User Catalogs, depending on the
> user's 'department' within the company. That way, user id 'X1' creates
> 'X1.TEST', and it gets cataloged in a UCAT.
>
> So far, so good.
>
> Now I've found that if 'X1' creates file 'TEST1', it gets cataloged in
> the MCAT. In order to prevent this, I've used existing information to
> act as a model for permit 'MASTERV.CATALOG' generic id(X1)
> access(read) and specified that.
>
> Now, if user X1 tries to create 'X1.TEST', the result is a RACF
> authorisation failure.
>
> Again, so far, so good
>
> Taking the test a bit further though, I've now found that user X1 is
> allowed to delete file 'TEST1' from the MCat!
>
> My conclusion so far is that X1 must be getting the required access
> rights from another user id/group/etc, but I can't see anything
> apposite in any examination I do of the RACF rules (I use output from
> the DBSYNC Rexx procedure for this).
>
>
> So... Can anyone spot my error and suggest a different 'permit'
> command, please?
> Alternatively, I looked at the idea of tracing RACF activity on behalf
> of a specific user with SET TRACE(USERID(X1)) - but I can't see where
> generated output goes to nor how to interrogate it. I *have* seen
> mention of using GTF for this purpose, along with IPCS, but my
> experience with both those tools is so limited that I didn't look much
> further in those references - skipped on past them, looking for other
> possibilities but not finding any.
>
> Any help gratefully appreciated
> Sean
>

If you're the owner of the dataset, you will get the authority to delete the 
catalog entry.  You should have your master cat set up with
UACC(READ) and all your usercats with UACC(UPDATE).  Put them in the global 
access table for a nice performance boost.  Only allow update and alter to the 
master cat and alter for usercats to your catalog administrators.  Good luck.

Regards,
Tom Conley

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


Re: Xpediter: Same Debugger from Competing Vendors???

2019-09-26 Thread Tom Marchant
On Wed, 25 Sep 2019 17:22:25 -0500, Giliad Wilf wrote:

>Well, SVC51 is a type-4 SVC and was comprised of several IGCnn05A pieces.
>I think there was a limit for the size of a single piece back at MVT R21 days, 
>of 1K, or maybe 2K and it had to fit into something called "transient area".
>You could not do much with just 1K or 2K.
>Currently, there is no limit on the size of a type-4 svc...

I don't know why we are talking about SVC 51 in connection with Xpediter. 
I have never worked with Xpediter, but I see no reason why it would 
hook into SVC 51. Abend-AID and similar products are another story.

Tom Marchant
Abend-AID development
Compuware

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


Re: Trying to put three reports together with SORT

2019-09-26 Thread Massimo Biancucci
Billy,

it was a bit challenging and I'm not 100% sure it's so generalized .
you've real file, try and let us know.

Here a stream who (in theory) does the needed, I've left different useless
output but understanding the flow:

//*---
//SORT01   EXEC  PGM=SORT
//SYSOUTDD   SYSOUT=*
//SORTIN DD *
FRUIT ORANGES   FLORIDA   SKU#1
FRUIT ORANGES   ARIZONA   SKU#1
FRUIT ORANGES   ARIZONA   SKU#2
FRUIT GRAPESWISCONSIN SKU#3
FRUIT GRAPESIDAHO SKU#4
FRUIT GRAPESOREGONSKU#4
VEGETABLE CORN  IOWA  SKU#8
VEGETABLE CORN  KANSASSKU#8
VEGETABLE CARROTS   VERMONT   SKU#9
/*
//SORTOUT  DD DSN=&,DISP=(,PASS),SPACE=(TRK,(1,1))
//SORTOU2  DD SYSOUT=*
//SYSIN DD   *
 INREC FIELDS=(1,80,SEQNUM,5,ZD)
 SORT FIELDS=COPY
*SORT FIELDS=(1,10,A,11,10,A,21,10,A,31,10,A),FORMAT=BI
 OUTFIL FNAMES=SORTOUT,NODETAIL,REMOVECC,
  SECTIONS=(1,10,HEADER3=(1,10,11,10,21,10,31,10,X,81,5,X,C'1'),
11,10,HEADER3=(10X,11,10,21,10,31,10,X,81,5,X,C'2'),
21,10,HEADER3=(20X,21,10,31,10,X,81,5,X,C'3'),
31,10,HEADER3=(30X,31,10,X,81,5,X,C'4'))
 OUTFIL FNAMES=SORTOU2,NODETAIL,REMOVECC,
  SECTIONS=(1,10,HEADER3=(1,10,11,10,21,10,31,10,X,81,5,X,C'1'),
11,10,HEADER3=(10X,11,10,21,10,31,10,X,81,5,X,C'2'),
21,10,HEADER3=(20X,21,10,31,10,X,81,5,X,C'3'),
31,10,HEADER3=(30X,31,10,X,81,5,X,C'4'))
/*
//*---
//SORT02   EXEC  PGM=SORT
//SYSOUTDD   SYSOUT=*
//SORTIN   DD DSN=&,DISP=(OLD,DELETE)
//SORTK12  DD SYSOUT=*
//SORTK22  DD SYSOUT=*
//SORTK32  DD SYSOUT=*
//SORTK42  DD SYSOUT=*
//SORTK1   DD DSN=&,DISP=(,PASS),SPACE=(TRK,(1,1))
//SORTK2   DD DSN=&,DISP=(,PASS),SPACE=(TRK,(1,1))
//SORTK3   DD DSN=&,DISP=(,PASS),SPACE=(TRK,(1,1))
//SORTK4   DD DSN=&,DISP=(,PASS),SPACE=(TRK,(1,1))
//SYSIN DD   *
 SORT FIELDS=COPY
 OUTFIL FNAMES=SORTK1,INCLUDE=(1,10,CH,NE,C'  ')
 OUTFIL FNAMES=SORTK2,INCLUDE=(1,10,CH,EQ,C'  ',AND,
  11,10,CH,NE,C'  ')
 OUTFIL FNAMES=SORTK3,INCLUDE=(1,10,CH,EQ,C'  ',AND,
  11,10,CH,EQ,C'  ',AND,
  21,10,CH,NE,C'  ')
 OUTFIL FNAMES=SORTK4,INCLUDE=(1,10,CH,EQ,C'  ',AND,
  11,10,CH,EQ,C'  ',AND,
  21,10,CH,EQ,C'  ',AND,
  31,10,CH,NE,C'  ')
 OUTFIL FNAMES=SORTK12,INCLUDE=(1,10,CH,NE,C'  ')
 OUTFIL FNAMES=SORTK22,INCLUDE=(1,10,CH,EQ,C'  ',AND,
   11,10,CH,NE,C'  ')
 OUTFIL FNAMES=SORTK32,INCLUDE=(1,10,CH,EQ,C'  ',AND,
   11,10,CH,EQ,C'  ',AND,
   21,10,CH,NE,C'  ')
 OUTFIL FNAMES=SORTK42,INCLUDE=(1,10,CH,EQ,C'  ',AND,
   11,10,CH,EQ,C'  ',AND,
   21,10,CH,EQ,C'  ',AND,
   31,10,CH,NE,C'  ')
/*
//*---
//SORTK1   EXEC  PGM=SORT
//SYSOUTDD   SYSOUT=*
//SORTIN   DD DSN=&,DISP=(OLD,DELETE)
//SORTOUT  DD DSN=&,DISP=(,PASS),SPACE=(TRK,(1,1))
//SORTOU2  DD SYSOUT=*
//SYSIN DD   *
 SORT FIELDS=(1,10,BI,A)
 SUM FIELDS=NONE
 OUTFIL FNAMES=SORTOUT
 OUTFIL FNAMES=SORTOU2
/*
//*---
//SORTK2   EXEC  PGM=SORT
//SYSOUTDD   SYSOUT=*
//SORTIN   DD DSN=&,DISP=(OLD,DELETE)
//SORTOUT  DD DSN=&,DISP=(,PASS),SPACE=(TRK,(1,1))
//SORTOU2  DD SYSOUT=*
//SYSIN DD   *
 SORT FIELDS=(11,10,BI,A)
 SUM FIELDS=NONE
 OUTFIL FNAMES=SORTOUT
 OUTFIL FNAMES=SORTOU2
/*
//*---
//SORTK3   EXEC  PGM=SORT
//SYSOUTDD   SYSOUT=*
//SORTIN   DD DSN=&,DISP=(OLD,DELETE)
//SORTOUT  DD DSN=&,DISP=(,PASS),SPACE=(TRK,(1,1))
//SORTOU2  DD SYSOUT=*
//SYSIN DD   *
 SORT FIELDS=(21,10,BI,A)
 SUM FIELDS=NONE
 OUTFIL FNAMES=SORTOUT
 OUTFIL FNAMES=SORTOU2
/*
//*---
//SORTALL  EXEC  PGM=SORT
//SYSOUTDD   SYSOUT=*
//SORTIN   DD DSN=&,DISP=(OLD,DELETE)
// DD DSN=&,DISP=(OLD,DELETE)
// DD DSN=&,DISP=(OLD,DELETE)
// DD DSN=&,DISP=(OLD,DELETE)
//SORTOUT  DD DSN=&,DISP=(,PASS),SPACE=(TRK,(1,1))
//SORTOU2  DD SYSOUT=*
//SYSIN DD   *
 SORT FIELDS=(42,5,ZD,A),EQUALS
 SUM FIELDS=NONE
 OUTFIL FNAMES=SORTOUT
 OUTFIL FNAMES=SORTOU2
/*

Final output is:

FRUIT ORANGES   FLORIDA   SKU#1  1 1
ARIZONA   SKU#1  2 3
  SKU#2  3 4
  GRAPESWISCONSIN SKU#3  4 2
IDAHO SKU#4  5 3
OREGONSKU#4  6 3
VEGETABLE CORN  

Re: Tracing RACF?

2019-09-26 Thread R.S.

W dniu 2019-09-26 o 06:27, Bruce Hewson pisze:

Hello Sean,

SMS managed datasets must be cataloged. And if there is no ALIAS and the 
dataset is allocated, SMS WILL catalog the dataset in the MASTER CATALOG no 
matter what the security rules.
[...]


IMHO SMS-managed dataset will NOT be cataloged in MCAT unless user has 
UPDATE to MCAT. In such scenario the dataset allocation would fail.

For UCAT and SMS-managed dataset no authority to the UCAT is required.

Fine print: my memory is failing, no warranty for the above... ;-)

--
Radoslaw Skorupka
Lodz, Poland




==

Jeśli nie jesteś adresatem tej wiadomości:

- powiadom nas o tym w mailu zwrotnym (dziękujemy!),
- usuń trwale tę wiadomość (i wszystkie kopie, które wydrukowałeś lub zapisałeś 
na dysku).
Wiadomość ta może zawierać chronione prawem informacje, które może wykorzystać 
tylko adresat.Przypominamy, że każdy, kto rozpowszechnia (kopiuje, rozprowadza) 
tę wiadomość lub podejmuje podobne działania, narusza prawo i może podlegać 
karze.

mBank S.A. z siedzibą w Warszawie, ul. Senatorska 18, 00-950 
Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. Sąd Rejonowy dla m. st. 
Warszawy XII Wydział Gospodarczy Krajowego Rejestru Sądowego, KRS 025237, 
NIP: 526-021-50-88. Kapitał zakładowy (opłacony w całości) według stanu na 
01.01.2019 r. wynosi 169.347.928 złotych.

If you are not the addressee of this message:

- let us know by replying to this e-mail (thank you!),
- delete this message permanently (including all the copies which you have 
printed out or saved).
This message may contain legally protected information, which may be used 
exclusively by the addressee.Please be reminded that anyone who disseminates 
(copies, distributes) this message or takes any similar action, violates the 
law and may be penalised.

mBank S.A. with its registered office in Warsaw, ul. Senatorska 18, 00-950 
Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. District Court for the Capital 
City of Warsaw, 12th Commercial Division of the National Court Register, KRS 
025237, NIP: 526-021-50-88. Fully paid-up share capital amounting to PLN 
169.347.928 as at 1 January 2019.

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