Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 Collection, March 2017

2017-04-27 Thread Tom Brennan

Susan Shumway wrote:

I know how much (most of) you miss the old product documentation tools ...


Did you say OLD?  Where are my 3-ring paper manuals?  You know, with all 
the TNL updates just stuffed in the back?


Just kidding!  Thanks Sue for reading and understanding.  I've been 
watching this group on and off since maybe 1995, and a big change I see 
(since I got back into it) is so many top IBMer's now responding and 
helping and even making changes based on the communication here.  Great 
to see.


Tom Brennan

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


Re: AW: Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 Collection, March 2017

2017-04-27 Thread Susan Shumway

Just FYI, I'm following these threads and absorbing it all.

To the direct point, it seems like the Adobe Indexed set of element and 
feature PDFs (SC27-8430) that Kevin Minerley mentioned in his response 
should suffice, and perhaps even impress, for those of you wanting a 
single downloadable of all z/OS PDFs. Also, truly consider giving KC4z, 
which Kevin also mentioned, a try. It provides the option to mix and 
match the z/OS plug-ins, if that's how you want to do things, for 
maximum flexibility in an offline, topic search type environment. Take a 
look through 
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.hkc/hkc.htm 
and see what you think.


To an indirect point, it's great to see the different statements in 
support of PDFs and even the one for KC. I know how much (most of) you 
miss the old product documentation tools, so this feedback is extremely 
valuable as we work hard to develop a set of solutions that will 
hopefully help you eventually forget them. The best thing that you can 
do is (continue to) voice your feedback where it really counts, like at 
SHARE and in feedback sessions with IBMers. (Of course, I'm always happy 
to continue collecting feedback here, if it's your only resource.) To 
that point, if any of you are willing to let my team bounce ideas off of 
you, as long as the proper confidentiality boxes are checked, let me 
know - we'll take you up on it.


Yours truly,
Sue Shumway

On 04/27/17 5:08 PM, Peter Hunkeler wrote:





The pdf's are fine for print and general reading. And searching has improved.

UNTIL I want the specific rc/rsn for an IDC3009I which is somewhere between 
pages 299 and 573 in the iea3m602.pdf and since almost every other IDC message 
references IDC3009I, the search in the pdf is pretty useless.




Exactly, it all depends on what your current need is. Are you looking for the 
explanation of message, or do you need to understand a specific macro 
parameter, or function parameter, etc.? Google, IBM KC, browser interface is 
often an efficient and effective choice. Are you in need to understand a 
concept, how does something work, etc.? One or more books are often to be 
consulted, and whole section or chapters have to be read. Books, be it paper or 
eBooks, is the choice.


So, IBM, and other vendors, need to understand that both variants are required.


--
Peter Hunkeler



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



--
Sue Shumway
z/OS Product Documentation Lead
IBM Poughkeepsie
chale...@us.ibm.com

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


Re: JZOS Java CLASSPATH

2017-04-27 Thread Andrew Rowley

On 28/04/2017 1:28 PM, David Crayford wrote:
I agree that it would be ideal if the JZOS batch launcher was 
modernized to support wildcards but disagree about the shell. I find 
it's absolutely necessary just to do stuff like:


. /etc/profile   # set TZ variable and other stuff


Whether there should be a system wide TZ variable is another discussion 
:-) I'm not sure there should be anything else in /etc/profile that is 
required for every java batch job.


It's also unfortunate that the DD is called STDENV but is doesn't follow 
the same conventions as BPXBATCH STDENV (I'm not sure which came first).


I have no argument with the facility to run a shell script, it's just 
the *requirement* for a script, and mainly the need to customize it for 
CLASSPATH that I object to. Java classpath can hard enough to figure out 
without dealing with shell script for-do-done loops and the syntax 
complexities of shell variables, braces, quotes, wildcard expansion etc.


I suspect it deters a lot of people from using Java on z/OS: they find 
that script and think "Hmmm, maybe I'll try Rexx first".


What would be ideal: STDENV DD to set environment variables in exactly 
the same way as BPXBATCH, and maybe something like SCRIPT DD for an 
optional initialization script.


--
Andrew Rowley
Black Hill Software
+61 413 302 386

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


Re: JZOS Java CLASSPATH

2017-04-27 Thread David Crayford

On 28/04/2017 9:13 AM, Andrew Rowley wrote:

On 28/04/2017 3:23 AM, Kirk Wolf wrote:
And yet I fail to see why this is an issue since the JZOS sample JCL 
shows

how to use the shell language to handle this - with more flexibility.

For example, the "java" command launcher can't do this:

for i in "${MYDIR}"/foo*.jar; do
 CLASSPATH="$CLASSPATH":"$i"
 done
I love JZOS, except for this shell script. I feel that a tailored 
shell script in every Java batch job is a major obstacle, because as 
you say "most Java users don't know their shell". Even more so for 
most z/OS users.




I agree that it would be ideal if the JZOS batch launcher was modernized 
to support wildcards but disagree about the shell. I find it's 
absolutely necessary just to do stuff like:


. /etc/profile   # set TZ variable and other stuff

You are just setting the CLASSPATH environment variable, so yes you 
can do the same thing using the java command in BPXBATCH if you need 
to (apologies for naming my program ClassPath, which is slightly 
confusing):


//S1  EXEC PGM=BPXBATCH,REGION=512M
//STDENV  DD *
CLASSPATH=java/target
//STDPARM DD *
SH for i in java/lib/slf*.jar; do
 CLASSPATH="$CLASSPATH":"$i";
 done;
 export CLASSPATH="$CLASSPATH";
 /usr/lpp/java/J8.0/bin/java ClassPath
//STDOUTDD SYSOUT=*
//STDERRDD SYSOUT=*

Output:
java/target:java/lib/slf4j-api-1.7.21.jar:java/lib/slf4j-simple-1.7.21.jar 


/home/andrewr/java/target/
/home/andrewr/java/lib/slf4j-api-1.7.21.jar
/home/andrewr/java/lib/slf4j-simple-1.7.21.jar

It's the handling of the CLASSPATH environment variable that's the issue.

I have been playing around with PROCs to try to simplify things so you 
can use more traditional JCL for JZOS jobs (hence my other questions 
about JCL substitutions in instream data).

e.g.

//JAVA EXEC PROC=JAVA8G,
// JAVACLS='''MyProgram''',
// APPHOME='''java/target''',
// CLASPATH='''java/lib/*:java/easysmf-je-1-5-2/jar/*'''
//INPUTDD DISP=SHR,...

It is difficult to handle the classpath like this if you need to allow 
multiple entries and support any sort of wildcard. It would be much 
easier if it followed the same rules as the java command.




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


Re: JZOS Java CLASSPATH

2017-04-27 Thread Andrew Rowley

On 28/04/2017 10:50 AM, Denis wrote:

One example, the jvm needs to scan every java class for specific annotations. 
The more unneccessary files in the classpath, the longer that takes.


Is that the JVM doing it, or is it actually done by certain frameworks 
that use annotations?


My understanding is that there are some frameworks that scan the 
classpath for annotations, and yes in that case it would be wise to 
minimize it, but in the more general case the class loader will load the 
directories but not the classes until they are actually referenced.


--
Andrew Rowley
Black Hill Software
+61 413 302 386

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


Re: JZOS Java CLASSPATH

2017-04-27 Thread Andrew Rowley

On 28/04/2017 3:23 AM, Kirk Wolf wrote:

And yet I fail to see why this is an issue since the JZOS sample JCL shows
how to use the shell language to handle this - with more flexibility.

For example, the "java" command launcher can't do this:

for i in "${MYDIR}"/foo*.jar; do
 CLASSPATH="$CLASSPATH":"$i"
 done
I love JZOS, except for this shell script. I feel that a tailored shell 
script in every Java batch job is a major obstacle, because as you say 
"most Java users don't know their shell". Even more so for most z/OS users.


You are just setting the CLASSPATH environment variable, so yes you can 
do the same thing using the java command in BPXBATCH if you need to 
(apologies for naming my program ClassPath, which is slightly confusing):


//S1  EXEC PGM=BPXBATCH,REGION=512M
//STDENV  DD *
CLASSPATH=java/target
//STDPARM DD *
SH for i in java/lib/slf*.jar; do
 CLASSPATH="$CLASSPATH":"$i";
 done;
 export CLASSPATH="$CLASSPATH";
 /usr/lpp/java/J8.0/bin/java ClassPath
//STDOUTDD SYSOUT=*
//STDERRDD SYSOUT=*

Output:
java/target:java/lib/slf4j-api-1.7.21.jar:java/lib/slf4j-simple-1.7.21.jar
/home/andrewr/java/target/
/home/andrewr/java/lib/slf4j-api-1.7.21.jar
/home/andrewr/java/lib/slf4j-simple-1.7.21.jar

It's the handling of the CLASSPATH environment variable that's the issue.

I have been playing around with PROCs to try to simplify things so you 
can use more traditional JCL for JZOS jobs (hence my other questions 
about JCL substitutions in instream data).

e.g.

//JAVA EXEC PROC=JAVA8G,
// JAVACLS='''MyProgram''',
// APPHOME='''java/target''',
// CLASPATH='''java/lib/*:java/easysmf-je-1-5-2/jar/*'''
//INPUTDD DISP=SHR,...

It is difficult to handle the classpath like this if you need to allow 
multiple entries and support any sort of wildcard. It would be much 
easier if it followed the same rules as the java command.


--
Andrew Rowley
Black Hill Software
+61 413 302 386

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


Re: JZOS Java CLASSPATH

2017-04-27 Thread Denis
Hi Andrew, 

One example, the jvm needs to scan every java class for specific annotations. 
The more unneccessary files in the classpath, the longer that takes. And the 
cache size is not unlimited, I have seen classpaths with more than 100mb in 
size.
If shared classloader cache is used, common storage is also not unlimited. As 
soon as a cache is too small, it uses more cpu time. There is plenty of more 
stuff.
I am not talking about the java applications that have 5mb jars in the 
classpath, but once started the classpath usually continues to grow.

Denis.


-Original Message-
From: Andrew Rowley 
To: IBM-MAIN 
Sent: Fri, Apr 28, 2017 02:08 AM
Subject: Re: JZOS Java CLASSPATH


On 28/04/2017 4:34 AM, Denis wrote:
> as the classpath size affects performance, its definitly a good idea to limit 
> the jars and its contents to what is required.
>
I wouldn't expect the classpath size to have a significant effect on 
performance, since Java can read and cache the directories from the jar 
files. A quick google search suggests this is the consensus.

The bigger problem of course is management of dependencies.

-- 
Andrew Rowley
Black Hill Software
+61 413 302 386

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to mailto:lists...@listserv.ua.edu;>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: SMS 'overflow' StorGrp [was: SMS STORGRP question]

2017-04-27 Thread Doug Shupe
My 2cents,
Please consider/remember that production data that goes to the overflow pool 
still needs to be part of you DR. Maybe with tape backup, GDPS or SRDF.
Whatever method, for us, it is far simpler to add the DASD where it is needed.
That said, some of the examples presented ARE great, dumps etc that would NOT 
be needed in DR, temp pool for sort etc.
Good discussion!
Best Regards, Doug


On Apr 27, 2017, at 17:25, Neil Duffee  wrote:

Caveat:  "daily digest, delayed list responses, yada, yada, yada..."

Skip/Jesse/Wayne:  I have 3 items for you to validate viz. OVERFLOW volume 
selection.

Has the OVERFLOW StorGrp got OVERFLOW=YES?  If not, it's just another, normal 
group to SMS.  I've been using a *true* SMS overflow pool for years to 
eliminate x37 abends and they are selected last.  All of the volumes are 
ENABLEd but the StorGrp is marked as OVERFLOW=YES.  The latter essentially 
defaults the StorGrp as QuiNew [1] placing all the volumes as 2nd+ tier in the 
selection criteria.  (same result as Vary,SMS,StorGrp(xxx,ALL),QUIESCE,NEW)  
For certainty, I also defined the group's status as QuiNew in ISMF.  

Does the primary allocation put all the volumes in SVCDUMP over the High 
Threshold? [2]  That means SMS starts with choosing from the 2nd+ tier (that 
includes Overflow) until it finds sufficient primary space.

You should also check the StorClas entries for "Multi-Tiered SG"=Yes.  This 
indicates you want volumes from SVCDUMP preferred to SG2 and OVERFLOW when the 
StorGrp ACS routine assigns = "SVCDUMP", "SG2", "OVERFLOW".  It's been 
my default for a long time, now.

[1]  "Volumes in Overflow storage groups will be selected for primary space 
allocation only when all the volumes in non-overflow storage groups can not 
satisfy the allocation amount without exceeding the storage group high 
threshold."  (ISMF StorGrp help text)
[2]  "The primary list consists of online volumes that meet all the requested 
preference attributes, are below their threshold, and whose volume status and 
storage group status are enabled."  "PRIMARY THRESHOLD Volume has sufficient 
space in the target addressing space for the allocation amount without 
exceeding the storage group HIGH THRESHOLD value."   Conventional volume 
selection, Chap 7, Storage Admin Ref.

>  signature = 8 lines follows  <
Neil Duffee, Joe Sysprog, uOttawa, Ottawa, Ont, Canada
telephone:1 613 562 5800 x4585  fax:1 613 562 5161
mailto:NDuffee of uOttawa.ca http:/ /aix1.uOttawa.ca/ ~nduffee
"How *do* you plan for something like that?"  Guardian Bob, Reboot
"For every action, there is an equal and opposite criticism."
"Systems Programming: Guilty, until proven innocent"  John Norgauer 2004
"Schrodinger's backup: The condition of any backup is unknown until a restore 
is attempted."  John McKown 2015


-Original Message-
From: Schroeder, Wayne [mailto:wsch...@txf...com] 
Sent: April 25, 2017 10:33
Subject: Re: SMS STORGRP question

I have the same setup but I have my OVERFLOW volumes set as QUINEW so they are 
only used if the original SG can't hold all of the data. Hope this helps.

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Jesse 1 Robinson
Sent: Friday, April 21, 2017 7:43 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: SMS STORGRP question

'Forever' we have directed DUMPSRV SVC dumps via ACS routine to STORGRP 
'SVCDUMP', which is defined to a small set of volumes called SVCDxx. We had a 
(major) problem a while back when DB2/CICS wanted to take a humongous dump that 
exceeded the available capacity of of the SVCDxx volumes. So we *added* group 
'OVERFLOW' to the ACS routine expecting this much larger group to accommodate 
dumps that SVCDUMP could not handle. Much to our chagrin, from that moment 
forward, *all* SVCDUMPs went directly to OVERFLOW without even trying to find 
space in group SVCDUMP. We have an RYO mechanism to manage dumps created on 
volume SVCDxx, so dumps created elsewhere are a problem we can live with on 
occasion but not regularly.

I know there are various ways to resolve to this problem, but I want to know 
why SMS is behaving this way and whether there is a purely SMS solution: try 
SVCDUMP first; if no room, then try OVERFLOW. In that order.

--
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: JZOS Java CLASSPATH

2017-04-27 Thread Andrew Rowley

On 28/04/2017 4:34 AM, Denis wrote:

as the classpath size affects performance, its definitly a good idea to limit 
the jars and its contents to what is required.

I wouldn't expect the classpath size to have a significant effect on 
performance, since Java can read and cache the directories from the jar 
files. A quick google search suggests this is the consensus.


The bigger problem of course is management of dependencies.

--
Andrew Rowley
Black Hill Software
+61 413 302 386

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


Re: How to parse rows using SORT

2017-04-27 Thread Sri h Kolusu
Bill,

Use the following control cards that would give you the desired results

//SYSINDD * 
  INCLUDE COND=(1,08,CH,EQ,C'EZA2284I',OR, 
1,17,CH,EQ,C'EZA1701I >>> LIST') 
 
  INREC IFTHEN=(WHEN=INIT, 
 BUILD=(1,80,SQZ=(SHIFT=LEFT,MID=C' '), 
8C'9')), 
 
IFTHEN=(WHEN=GROUP,BEGIN=(1,17,CH,EQ,C'EZA1701I >>> LIST'), 
PUSH=(91:ID=3,18,50)), 
 
IFTHEN=(WHEN=(1,8,CH,EQ,C'EZA2284I'), 
PARSE=(%01=(STARTAT=C'Jan',STARTAT=C'Feb', 
STARTAT=C'Mar',STARTAT=C'Apr', 
STARTAT=C'May',STARTAT=C'Jun', 
STARTAT=C'Jul',STARTAT=C'Aug', 
STARTAT=C'Sep',STARTAT=C'Oct', 
STARTAT=C'Nov',STARTAT=C'Dec', 
ENDBEFR=C' ',FIXLEN=04), 
   %02=(FIXLEN=02,ENDBEFR=C' '), 
   %03=(FIXLEN=04,ENDBEFR=C' '), 
   %04=(FIXLEN=10,ENDBEFR=C' ')), 
 
OVERLAY=(081:%03,UFF,EDIT=(), 
 085:%01, 
 089:%02,UFF,EDIT=(TT), 
 150:%04),HIT=NEXT), 
 
IFTHEN=(WHEN=(1,8,CH,EQ,C'EZA2284I'), 
 OVERLAY=(85:85,3,CHANGE=(2, 
C'Jan',C'01',C'Feb',C'02',C'Mar',C'03', 
C'Apr',C'04',C'May',C'05',C'Jun',C'06', 
C'Jul',C'07',C'Aug',C'08',C'Sep',C'09', 
C'Oct',C'10',C'Nov',C'11',C'Dec',C'12'), 
NOMATCH=(C'00'), 
  87:89,2,2X)) 
 
  SORT FIELDS=(91,3,CH,A, $ GROUP 
   81,8,CH,D),EQUALS  $ DATE DESC 
 
  OUTREC OVERLAY=(161:SEQNUM,3,ZD,RESTART=(91,3)) 
 
  OUTFIL INCLUDE=(150,10,CH,GT,C' ',AND, 
  161,3,ZD,GE,2,AND, 
  161,3,ZD,LE,4), 
  BUILD=(94,63,SQZ=(SHIFT=LEFT,MID=C'/',LENGTH=80)) 
//* 



Further if you have any questions please let me know


Thanks.
Kolusu
DFSORT Development



From:   Bill Ashton 
To: IBM-MAIN@LISTSERV.UA.EDU
Date:   04/27/2017 11:28 AM
Subject:Re: How to parse rows using SORT
Sent by:IBM Mainframe Discussion List 



Hi Kolusu, I have a slightly different twist on this request for a
different need.

Here, I will have multiple FTP directory commands' output, and want to
capture only the most recent 3 filenames in each directory. The output 
will
all be in one single file for further processing.

Now I know I want to capture only the EZA1701 message to extract the
directory name, and the EZA2284I messages for each file, and I want to
create output files with the command: "get dirname/filename" for only the
most recent files.

I have figured out how to change the Month value to a number and to 
reorder
the date to be yearmmdd, but I could not figure out how to replace the
space with a zero in the first digit of the day and I could not figure out
how to get the directory name on each file before sorting. I suppose the
space in the day value is not a problem as it would sort lower just like
zero, but I would rather it be specified accurately. Also, with the chance
that the date could be in a different column based on filesizes in the
directory, the absolute value on the column for the CHANGE won't always
work (I show that by pushing the last set to the right one column).

I hope you are not troubled with this request, and I appreciate your help.

I have attached some JCL and data with the first part of my process
(although you might change it anyway).

Thanks again!
Bill


On Mon, Apr 24, 2017 at 10:03 AM, Bill Ashton 
wrote:

> Kolusu, thanks for the fix - I had not noticed this problem in my test
> cases, but now believe I have a more accurate process. I appreciate your
> time and attention! Have a magnificent Monday!
>
> On Fri, Apr 21, 2017 at 5:51 PM, Sri h Kolusu  
wrote:
>
>> Bill,
>>
>> I apologize for the oversight in parsing the dataset name.  As soon as 
I
>> sent my earlier reply I realized that I did not cover all the scenarios
>> for the dataset name.  If the HLQ is less than 6 bytes the parse would
>> grab the time which starts before the dataset name.
>>
>> for example the records in red color
>>
>> Dec 29 10:23 HOLDDATA.BIN
>> Apr  3 12:28 REPORT1.TXT
>> Nov 15 11:33 NEWDATA.BIN
>> Nov 15 11:34 a.BIN
>> Nov 15 11:35 abc.BIN
>> Nov 15 11:36 abcd.BIN
>> Nov 15 11:37 abcde.BIN
>> Nov 15 11:38 abcdef.BIN
>> Nov 15 11:39 abcdefg.BIN
>> Nov 15 11:40 abcdefgh.BIN
>>
>> So you need to change your INREC IFTHEN statements to handle these 
dataset
>> names.  Here are the updated control cards ( Only the INREC IFTHEN
>> statments need to be changed.)
>>
>> INREC IFOUTLEN=80,
>>   IFTHEN=(WHEN=(1,3,CH,EQ,C'250'),
>>PARSE=(%01=(STARTAFT=C'"',ENDBEFR=C'"',FIXLEN=50)),
>>BUILD=(C'250 ',%01)),
>>
>>   IFTHEN=(WHEN=(1,3,CH,EQ,C'EZA'),
>>PARSE=(%=(ENDAT=C'.BIN'),
>> 

Re: Terminology - Datasets

2017-04-27 Thread Ed Jaffe

On 4/26/2017 4:42 PM, Jesse 1 Robinson wrote:

Was 'USS file' never officially blessed for this purpose?


These days it should be z/OS UNIX file...

--
Edward E Jaffe
Phoenix Software International, Inc
831 Parkview Drive North
El Segundo, CA 90245
http://www.phoenixsoftware.com/

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


Re: Terminology - Datasets

2017-04-27 Thread Gord Tomlin

On 2017-04-27 18:07, Paul Gilmartin wrote:

On Thu, 27 Apr 2017 17:30:30 -0400, Gord Tomlin wrote:

 Any time Gil succeeds in getting a z/OS
MVS facility to work with z/OS UNIX files, we'll have to update our doc! ;)


Be specific.  What qualifies as a "z/OS MVS facility"?  IEBGENER works fine.
HLASM works fine.  Binder works fine.  ISPF Edit works fine.  Are these,
therefore, not to be considered z/OS MVS facilities?

-- gil


I never said that there were no z/OS MVS facilities that work with z/OS 
UNIX files! I was just (jokingly) expressing that any z/OS MVS facility 
that does not presently work with z/OS UNIX files, and is at some time 
in the future enhanced to work with z/OS UNIX files, may require doc 
changes.


--

Regards, Gord Tomlin
Action Software International
(a division of Mazda Computer Corporation)
Tel: (905) 470-7113, Fax: (905) 470-6507

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


Re: Adventures in JCL: PROCs, symbols and instream data

2017-04-27 Thread Andrew Rowley

On 27/04/2017 10:54 PM, Tom Marchant wrote:

Glad you got it to work, but it should have worked the way you had it.
I hope you will open a Service Request to get it fixed.

I will, I am on the z/OS RDP so I had to confirm whether it was possible 
and the process. I now know how to do it. The information here has been 
very helpful though.


--
Andrew Rowley
Black Hill Software
+61 413 302 386

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


Re: Terminology - Datasets

2017-04-27 Thread Paul Gilmartin
On Thu, 27 Apr 2017 17:30:30 -0400, Gord Tomlin wrote:
> Any time Gil succeeds in getting a z/OS
>MVS facility to work with z/OS UNIX files, we'll have to update our doc! ;)
>
Be specific.  What qualifies as a "z/OS MVS facility"?  IEBGENER works fine.
HLASM works fine.  Binder works fine.  ISPF Edit works fine.  Are these,
therefore, not to be considered z/OS MVS facilities?

-- gil

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


Re: Terminology - Datasets

2017-04-27 Thread Frank Swarbrick
I don't know enough about the internals and history.  I was preferring MVS UNIX 
to z/OS UNIX.


From: IBM Mainframe Discussion List  on behalf of 
Phil Smith 
Sent: Thursday, April 27, 2017 2:59 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Terminology - Datasets

Frank Swarbrick wrote:
>Personally I think we should call them "MVS data sets" or "MVS files", as 
>distinguished from and "MVS Unix files".  We still have "MVS JCL", so why 
>muddy the waters whenever IBM marketing decides to change the name of the 
>"operating system" again?

"MVS"? While MVS is a component of z/OS, the other one is UNIX System Services. 
As far as I can tell, USS (no, let's not argue over that short form) is not 
MVS, it's USS. Yes, they're well-integrated and talk to each other and all 
that, but why say "MVS UNIX files"? Why not just "UNIX files"?

Happy to be corrected about the delineation, but that's what I believe I've 
observed.

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

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


Re: How is SMF 120 Collected (Websphere)

2017-04-27 Thread Lizette Koehler
Sure,

-D SMF,O
 IEE967I 14.45.19 SMF PARAMETERS 016
MEMBER = SMFPRM00
SMFDLEXIT(USER3(IRRADU86)) -- DEFAULT
SMFDLEXIT(USER2(IRRADU00)) -- DEFAULT
SMFDPEXIT(USER3(IRRADU86)) -- DEFAULT
SMFDPEXIT(USER2(IRRADU00)) -- DEFAULT
EMPTYEXCPSEC(NOSUPPRESS) -- DEFAULT
NOPERMFIX -- DEFAULT
NOSMF30COUNT -- DEFAULT
MULCFUNC -- DEFAULT
DSPSIZMAX(2048M) -- DEFAULT
BUFUSEWARN(25) -- DEFAULT
BUFSIZMAX(0128M) -- DEFAULT
MEMLIMIT(2G) -- DEFAULT
LASTDS(MSG) -- DEFAULT
NOBUFFS(MSG) -- DEFAULT
MAXEVENTINTRECS(00) -- DEFAULT
DUMPABND(RETRY) -- DEFAULT
SUBSYS(STC,INTERVAL(001501)) -- SYS
SUBSYS(STC,NODETAIL) -- SYS
SUBSYS(STC,TYPE(0:255)) -- SYS
SUBSYS(STC,EXITS(IEFU85)) -- PARMLIB
SUBSYS(STC,EXITS(IEFU84)) -- PARMLIB
SUBSYS(STC,EXITS(IEFU83)) -- PARMLIB
SUBSYS(STC,EXITS(IEFU29)) -- PARMLIB
SUBSYS(STC,EXITS(IEFUTL)) -- PARMLIB
SUBSYS(STC,EXITS(IEFUSO)) -- PARMLIB
SUBSYS(STC,EXITS(IEFUSI)) -- PARMLIB
SUBSYS(STC,EXITS(IEFUJV)) -- PARMLIB
SUBSYS(STC,EXITS(IEFUJP)) -- PARMLIB
SUBSYS(STC,EXITS(IEFUJI)) -- PARMLIB
SUBSYS(STC,EXITS(IEFUAV)) -- PARMLIB
SUBSYS(STC,EXITS(IEFACTRT)) -- PARMLIB
SYS(TYPE(0:255)) -- DEFAULT
SYS(NODETAIL) -- PARMLIB
SYS(INTERVAL(001501)) -- PARMLIB
SYS(EXITS(IEFU85)) -- PARMLIB
SYS(EXITS(IEFU84)) -- PARMLIB
SYS(EXITS(IEFU83)) -- PARMLIB
SYS(EXITS(IEFU29)) -- PARMLIB
SYS(EXITS(IEFUTL)) -- PARMLIB
SYS(EXITS(IEFUSO)) -- PARMLIB
SYS(EXITS(IEFUSI)) -- PARMLIB
SYS(EXITS(IEFUJV)) -- PARMLIB
SYS(EXITS(IEFUJP)) -- PARMLIB
SYS(EXITS(IEFUJI)) -- PARMLIB
SYS(EXITS(IEFUAV)) -- PARMLIB
SYS(EXITS(IEFACTRT)) -- PARMLIB
LISTDSN -- PARMLIB
SID(LPR1) -- PARMLIB
DDCONS(NO) -- PARMLIB
JWT(0030) -- PARMLIB
SYNCVAL(00) -- PARMLIB
INTVAL(15) -- PARMLIB
STATUS(01) -- PARMLIB


Lizette

-Original Message-
>From: "Blaicher, Christopher Y." 
>Sent: Apr 27, 2017 2:18 PM
>To: IBM-MAIN@LISTSERV.UA.EDU
>Subject: Re: How is SMF 120 Collected (Websphere)
>
>Can you give us the output from a D SMF,O command?
>
>
>Chris Blaicher
>Technical Architect
>Mainframe Development
>P: 201-930-8234  |  M: 512-627-3803
>E: cblaic...@syncsort.com
>
>Syncsort Incorporated
>2 Blue Hill Plaza #1563
>Pearl River, NY 10965
>www.syncsort.com
>
>Data quality leader Trillium Software is now a part of Syncsort.
>
>-Original Message-
>From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On 
>Behalf Of Lizette Koehler
>Sent: Thursday, April 27, 2017 5:05 PM
>To: IBM-MAIN@LISTSERV.UA.EDU
>Subject: How is SMF 120 Collected (Websphere)
>
>List,
>
>I was requested to do some reports using SMF Type 120 records - Websphere.
>
>I looked in my SMF Dump process and they are not in the summary.
>
>I checked my SMF Options and they are set to collect all records
>
>
>SUBSYS(STC,TYPE(0:255)) -- SYS
>
>SYS(TYPE(0:255)) -- DEFAULT
>
>
>So I am not sure why this is not being collected.  Is there something in 
>WebSphere to tell it to write SMF 120 Records?  Do I need to go ask the MQ 
>List?
>
>
>Thanks
>
>Lizette
>

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


Re: How is SMF 120 Collected (Websphere)

2017-04-27 Thread Graham Harris
Websphere bods need to turn SMF on on their side.

On 27 April 2017 at 22:18, Blaicher, Christopher Y. 
wrote:

> Can you give us the output from a D SMF,O command?
>
>
> Chris Blaicher
> Technical Architect
> Mainframe Development
> P: 201-930-8234  |  M: 512-627-3803
> E: cblaic...@syncsort.com
>
> Syncsort Incorporated
> 2 Blue Hill Plaza #1563
> Pearl River, NY 10965
> www.syncsort.com
>
> Data quality leader Trillium Software is now a part of Syncsort.
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Lizette Koehler
> Sent: Thursday, April 27, 2017 5:05 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: How is SMF 120 Collected (Websphere)
>
> List,
>
> I was requested to do some reports using SMF Type 120 records - Websphere.
>
> I looked in my SMF Dump process and they are not in the summary.
>
> I checked my SMF Options and they are set to collect all records
>
>
> SUBSYS(STC,TYPE(0:255)) -- SYS
>
> SYS(TYPE(0:255)) -- DEFAULT
>
>
> So I am not sure why this is not being collected.  Is there something in
> WebSphere to tell it to write SMF 120 Records?  Do I need to go ask the MQ
> List?
>
>
> Thanks
>
> Lizette
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send email
> to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
> 
>
>
>
> ATTENTION: -
>
> The information contained in this message (including any files transmitted
> with this message) may contain proprietary, trade secret or other
> confidential and/or legally privileged information. Any pricing information
> contained in this message or in any files transmitted with this message is
> always confidential and cannot be shared with any third parties without
> prior written approval from Syncsort. This message is intended to be read
> only by the individual or entity to whom it is addressed or by their
> designee. If the reader of this message is not the intended recipient, you
> are on notice that any use, disclosure, copying or distribution of this
> message, in any form, is strictly prohibited. If you have received this
> message in error, please immediately notify the sender and/or Syncsort and
> destroy all copies of this message in your possession, custody or control.
>
> --
> 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: Terminology - Datasets

2017-04-27 Thread Gord Tomlin

On 2017-04-27 16:59, Phil Smith wrote:

"MVS"? While MVS is a component of z/OS, the other one is UNIX System Services. As far as I can 
tell, USS (no, let's not argue over that short form) is not MVS, it's USS. Yes, they're well-integrated and 
talk to each other and all that, but why say "MVS UNIX files"? Why not just "UNIX files"?

Happy to be corrected about the delineation, but that's what I believe I've 
observed.


In recent years, we have been trying to go with "z/OS MVS" and "z/OS 
UNIX" in our documentation. For data sets or files, if there is any 
chance for MVS/UNIX confusion, we say "z/OS MVS data sets" or "z/OS UNIX 
files". If there is no possibility for MVS/UNIX confusion, then we just 
refer to "data sets" or "files". Any time Gil succeeds in getting a z/OS 
MVS facility to work with z/OS UNIX files, we'll have to update our doc! ;)


These terms do leave us exposed to IBM deciding to name some future 
version of its flagship mainframe operating system to something other 
than z/OS, but they do make it pretty clear which part of the OS is 
being discussed at any time.


In the field, we find that despite IBM's attempts to sweep "USS" as an 
acronym for "UNIX System Services" under the rug, it refuses to go away 
and remains in common use.


--

Regards, Gord Tomlin
Action Software International
(a division of Mazda Computer Corporation)
Tel: (905) 470-7113, Fax: (905) 470-6507

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


Re: SMS 'overflow' StorGrp [was: SMS STORGRP question]

2017-04-27 Thread Neil Duffee
Caveat:  "daily digest, delayed list responses, yada, yada, yada..."

Skip/Jesse/Wayne:  I have 3 items for you to validate viz. OVERFLOW volume 
selection.

Has the OVERFLOW StorGrp got OVERFLOW=YES?  If not, it's just another, normal 
group to SMS.  I've been using a *true* SMS overflow pool for years to 
eliminate x37 abends and they are selected last.  All of the volumes are 
ENABLEd but the StorGrp is marked as OVERFLOW=YES.  The latter essentially 
defaults the StorGrp as QuiNew [1] placing all the volumes as 2nd+ tier in the 
selection criteria.  (same result as Vary,SMS,StorGrp(xxx,ALL),QUIESCE,NEW)  
For certainty, I also defined the group's status as QuiNew in ISMF.  

Does the primary allocation put all the volumes in SVCDUMP over the High 
Threshold? [2]  That means SMS starts with choosing from the 2nd+ tier (that 
includes Overflow) until it finds sufficient primary space.

You should also check the StorClas entries for "Multi-Tiered SG"=Yes.  This 
indicates you want volumes from SVCDUMP preferred to SG2 and OVERFLOW when the 
StorGrp ACS routine assigns = "SVCDUMP", "SG2", "OVERFLOW".  It's been 
my default for a long time, now.

[1]  "Volumes in Overflow storage groups will be selected for primary space 
allocation only when all the volumes in non-overflow storage groups can not 
satisfy the allocation amount without exceeding the storage group high 
threshold."  (ISMF StorGrp help text)
[2]  "The primary list consists of online volumes that meet all the requested 
preference attributes, are below their threshold, and whose volume status and 
storage group status are enabled."  "PRIMARY THRESHOLD Volume has sufficient 
space in the target addressing space for the allocation amount without 
exceeding the storage group HIGH THRESHOLD value."   Conventional volume 
selection, Chap 7, Storage Admin Ref.

>  signature = 8 lines follows  <
Neil Duffee, Joe Sysprog, uOttawa, Ottawa, Ont, Canada
telephone:1 613 562 5800 x4585  fax:1 613 562 5161
mailto:NDuffee of uOttawa.ca http:/ /aix1.uOttawa.ca/ ~nduffee
"How *do* you plan for something like that?"  Guardian Bob, Reboot
"For every action, there is an equal and opposite criticism."
"Systems Programming: Guilty, until proven innocent"  John Norgauer 2004
"Schrodinger's backup: The condition of any backup is unknown until a restore 
is attempted."  John McKown 2015


-Original Message-
From: Schroeder, Wayne [mailto:wsch...@txf...com] 
Sent: April 25, 2017 10:33
Subject: Re: SMS STORGRP question

I have the same setup but I have my OVERFLOW volumes set as QUINEW so they are 
only used if the original SG can't hold all of the data. Hope this helps.

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Jesse 1 Robinson
Sent: Friday, April 21, 2017 7:43 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: SMS STORGRP question

'Forever' we have directed DUMPSRV SVC dumps via ACS routine to STORGRP 
'SVCDUMP', which is defined to a small set of volumes called SVCDxx. We had a 
(major) problem a while back when DB2/CICS wanted to take a humongous dump that 
exceeded the available capacity of of the SVCDxx volumes. So we *added* group 
'OVERFLOW' to the ACS routine expecting this much larger group to accommodate 
dumps that SVCDUMP could not handle. Much to our chagrin, from that moment 
forward, *all* SVCDUMPs went directly to OVERFLOW without even trying to find 
space in group SVCDUMP. We have an RYO mechanism to manage dumps created on 
volume SVCDxx, so dumps created elsewhere are a problem we can live with on 
occasion but not regularly.

I know there are various ways to resolve to this problem, but I want to know 
why SMS is behaving this way and whether there is a purely SMS solution: try 
SVCDUMP first; if no room, then try OVERFLOW. In that order.

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


Re: How is SMF 120 Collected (Websphere)

2017-04-27 Thread Blaicher, Christopher Y.
Can you give us the output from a D SMF,O command?


Chris Blaicher
Technical Architect
Mainframe Development
P: 201-930-8234  |  M: 512-627-3803
E: cblaic...@syncsort.com

Syncsort Incorporated
2 Blue Hill Plaza #1563
Pearl River, NY 10965
www.syncsort.com

Data quality leader Trillium Software is now a part of Syncsort.

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Lizette Koehler
Sent: Thursday, April 27, 2017 5:05 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: How is SMF 120 Collected (Websphere)

List,

I was requested to do some reports using SMF Type 120 records - Websphere.

I looked in my SMF Dump process and they are not in the summary.

I checked my SMF Options and they are set to collect all records


SUBSYS(STC,TYPE(0:255)) -- SYS

SYS(TYPE(0:255)) -- DEFAULT


So I am not sure why this is not being collected.  Is there something in 
WebSphere to tell it to write SMF 120 Records?  Do I need to go ask the MQ List?


Thanks

Lizette

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





ATTENTION: -

The information contained in this message (including any files transmitted with 
this message) may contain proprietary, trade secret or other confidential 
and/or legally privileged information. Any pricing information contained in 
this message or in any files transmitted with this message is always 
confidential and cannot be shared with any third parties without prior written 
approval from Syncsort. This message is intended to be read only by the 
individual or entity to whom it is addressed or by their designee. If the 
reader of this message is not the intended recipient, you are on notice that 
any use, disclosure, copying or distribution of this message, in any form, is 
strictly prohibited. If you have received this message in error, please 
immediately notify the sender and/or Syncsort and destroy all copies of this 
message in your possession, custody or control.

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


AW: Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 Collection, March 2017

2017-04-27 Thread Peter Hunkeler



>The pdf's are fine for print and general reading. And searching has improved.
UNTIL I want the specific rc/rsn for an IDC3009I which is somewhere between 
pages 299 and 573 in the iea3m602.pdf and since almost every other IDC message 
references IDC3009I, the search in the pdf is pretty useless.




Exactly, it all depends on what your current need is. Are you looking for the 
explanation of message, or do you need to understand a specific macro 
parameter, or function parameter, etc.? Google, IBM KC, browser interface is 
often an efficient and effective choice. Are you in need to understand a 
concept, how does something work, etc.? One or more books are often to be 
consulted, and whole section or chapters have to be read. Books, be it paper or 
eBooks, is the choice.


So, IBM, and other vendors, need to understand that both variants are required.


--
Peter Hunkeler



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


How is SMF 120 Collected (Websphere)

2017-04-27 Thread Lizette Koehler
List, 

I was requested to do some reports using SMF Type 120 records - Websphere.

I looked in my SMF Dump process and they are not in the summary.

I checked my SMF Options and they are set to collect all records


SUBSYS(STC,TYPE(0:255)) -- SYS

SYS(TYPE(0:255)) -- DEFAULT


So I am not sure why this is not being collected.  Is there something in 
WebSphere to tell it to write SMF 120 Records?  Do I need to go ask the MQ List?


Thanks

Lizette

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


Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 Collection, March 2017

2017-04-27 Thread Gibney, Dave
The point is that with Bookie, a search for IDC3009I rc rsn would take you 
directly to the instance you needed.
I had to sort of binary scroll and the sequential page until I found my 
specific need on page 385. This time

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Steve Beaver
> Sent: Thursday, April 27, 2017 2:00 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library:
> z/OS V2R2 Collection, March 2017
> 
> IDC3009I needs to be a manual by itself  -- It’s a catch all for anything the 
> is
> VSAM related
> 
> 
> 
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Gibney, Dave
> Sent: Thursday, April 27, 2017 3:40 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library:
> z/OS V2R2 Collection, March 2017
> 
> The pdf's are fine for print and general reading. And searching has improved.
> UNTIL I want the specific rc/rsn for an IDC3009I which is somewhere
> between pages 299 and 573 in the iea3m602.pdf and since almost every
> other IDC message references IDC3009I, the search in the pdf is pretty
> useless.
> 
> Bookmanager search is still the best. And for what it's worth, I always
> download all the books and shelves using Softcopy Librarian. Searching in
> Softcopy Librarian used to pass the search into the Bookmanager book and
> take you directly to the result.
> 
> > -Original Message-
> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> > On Behalf Of Dyck, Lionel B. (TRA)
> > Sent: Thursday, April 27, 2017 9:55 AM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library:
> > z/OS V2R2 Collection, March 2017
> >
> > Tom - I'm in total agreement with you.  I never liked BookManager on
> > Windows and I prefer PDF's as I don't need a network connection, I can
> > place the one's I need on my iPad for easy access if my PC is down,
> > and the advanced search to cross PDF boundaries is excellent.
> >
> > It works so please don't break it.
> >
> > --
> > 
> > Lionel B. Dyck
> > Mainframe Systems Programmer - TRA
> > Enterprise Operations (Station 200) (005OP6.3.10) Information and
> > Technology, IT Operations and Services
> >
> > -Original Message-
> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> > On Behalf Of Tom Brennan
> > Sent: Thursday, April 27, 2017 11:30 AM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library:
> > z/OS
> > V2R2 Collection, March 2017
> >
> > A year or more ago I went looking for the latest PDF documents for an
> > Omegamon sub-product (Networks I think?) and couldn't find them.  I
> > did find PDF's for the previous version so I sent an email to one of
> > the authors and got a response:  There were no PDF's for the latest,
> > only the web-based doc, and if I wanted a PDF I could click buttons on
> > the web page to grab all the pages and put them into a PDF.  That
> > ended up just like you said, a PDF of relatively unrelated snippets :)
> >
> > Very odd, and I hope that isn't the way of the future.  To me, the
> > online snippets are useful only if I get lucky and find what I need
> > via search.  But once I'm reading a section, even with the KC
> > next/prev page clicking (like the left/right arrows which don't seem
> > to work all the time), I usually give up quickly and just go download
> something I can read - the PDF manual.
> >
> > Plus, with the PDF (even if it's not completely up-to-date) I have
> > information on my PC without needing an IP connection, which could be
> > important in a pinch.
> >
> > Now don't take me too seriously, since I may be a bit unusual because
> > I never liked Bookmanager on my PC either, something people seem to
> > like a lot here.
> >
> > Dana Mitchell wrote:
> > > On Thu, 27 Apr 2017 07:31:11 +0200, Peter Hunkeler 
> > wrote:
> > >
> > >>Now, I B M  w i l l   y o u   p l e a s e,   p l e a s e  n o t   a b a n 
> > >>d o n   t h i s
> > "Download books in PDF format" support ever!!! KC has its place but
> > will never be a replacement for PDFs to be read offline!
> > >>
> > >
> > >
> > > My biggest fear is that IBM will continue moving the z/OS
> > > documentation in
> > the direction it has taken with the IBM i docs in the past.   The main 
> > content
> > in the Knowledge Center consists of small, one or two paragraph
> > tidbits, filled with links to other items, making it almost impossible to 
> > read in
> depth about a
> > topic for a good overview.Then the PDF version is just the same little
> > snippets from the KC, strung together into a pdf document.
> > >
> > > Dana
> > >
> > > 

Re: Terminology - Datasets

2017-04-27 Thread Phil Smith
Frank Swarbrick wrote:
>Personally I think we should call them "MVS data sets" or "MVS files", as 
>distinguished from and "MVS Unix files".  We still have "MVS JCL", so why 
>muddy the waters whenever IBM marketing decides to change the name of the 
>"operating system" again?

"MVS"? While MVS is a component of z/OS, the other one is UNIX System Services. 
As far as I can tell, USS (no, let's not argue over that short form) is not 
MVS, it's USS. Yes, they're well-integrated and talk to each other and all 
that, but why say "MVS UNIX files"? Why not just "UNIX files"?

Happy to be corrected about the delineation, but that's what I believe I've 
observed.

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


Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 Collection, March 2017

2017-04-27 Thread Steve Beaver
IDC3009I needs to be a manual by itself  -- It’s a catch all for anything the 
is VSAM related



-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Gibney, Dave
Sent: Thursday, April 27, 2017 3:40 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS 
V2R2 Collection, March 2017

The pdf's are fine for print and general reading. And searching has improved.
UNTIL I want the specific rc/rsn for an IDC3009I which is somewhere between 
pages 299 and 573 in the iea3m602.pdf and since almost every other IDC message 
references IDC3009I, the search in the pdf is pretty useless.

Bookmanager search is still the best. And for what it's worth, I always 
download all the books and shelves using Softcopy Librarian. Searching in 
Softcopy Librarian used to pass the search into the Bookmanager book and take 
you directly to the result.

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
> On Behalf Of Dyck, Lionel B. (TRA)
> Sent: Thursday, April 27, 2017 9:55 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library:
> z/OS V2R2 Collection, March 2017
> 
> Tom - I'm in total agreement with you.  I never liked BookManager on 
> Windows and I prefer PDF's as I don't need a network connection, I can 
> place the one's I need on my iPad for easy access if my PC is down, 
> and the advanced search to cross PDF boundaries is excellent.
> 
> It works so please don't break it.
> 
> --
> 
> Lionel B. Dyck
> Mainframe Systems Programmer - TRA
> Enterprise Operations (Station 200) (005OP6.3.10) Information and 
> Technology, IT Operations and Services
> 
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
> On Behalf Of Tom Brennan
> Sent: Thursday, April 27, 2017 11:30 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library: 
> z/OS
> V2R2 Collection, March 2017
> 
> A year or more ago I went looking for the latest PDF documents for an 
> Omegamon sub-product (Networks I think?) and couldn't find them.  I 
> did find PDF's for the previous version so I sent an email to one of 
> the authors and got a response:  There were no PDF's for the latest, 
> only the web-based doc, and if I wanted a PDF I could click buttons on 
> the web page to grab all the pages and put them into a PDF.  That 
> ended up just like you said, a PDF of relatively unrelated snippets :)
> 
> Very odd, and I hope that isn't the way of the future.  To me, the 
> online snippets are useful only if I get lucky and find what I need 
> via search.  But once I'm reading a section, even with the KC 
> next/prev page clicking (like the left/right arrows which don't seem 
> to work all the time), I usually give up quickly and just go download 
> something I can read - the PDF manual.
> 
> Plus, with the PDF (even if it's not completely up-to-date) I have 
> information on my PC without needing an IP connection, which could be 
> important in a pinch.
> 
> Now don't take me too seriously, since I may be a bit unusual because 
> I never liked Bookmanager on my PC either, something people seem to 
> like a lot here.
> 
> Dana Mitchell wrote:
> > On Thu, 27 Apr 2017 07:31:11 +0200, Peter Hunkeler 
> wrote:
> >
> >>Now, I B M  w i l l   y o u   p l e a s e,   p l e a s e  n o t   a b a n d 
> >>o n   t h i s
> "Download books in PDF format" support ever!!! KC has its place but 
> will never be a replacement for PDFs to be read offline!
> >>
> >
> >
> > My biggest fear is that IBM will continue moving the z/OS 
> > documentation in
> the direction it has taken with the IBM i docs in the past.   The main content
> in the Knowledge Center consists of small, one or two paragraph 
> tidbits, filled with links to other items, making it almost impossible to 
> read in depth about a
> topic for a good overview.Then the PDF version is just the same little
> snippets from the KC, strung together into a pdf document.
> >
> > Dana
> >
> > 
> > -- 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 / 

Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 Collection, March 2017

2017-04-27 Thread Gibney, Dave
The pdf's are fine for print and general reading. And searching has improved.
UNTIL I want the specific rc/rsn for an IDC3009I which is somewhere between 
pages 299 and 573 in the iea3m602.pdf and since almost every other IDC message 
references IDC3009I, the search in the pdf is pretty useless.

Bookmanager search is still the best. And for what it's worth, I always 
download all the books and shelves using Softcopy Librarian. Searching in 
Softcopy Librarian used to pass the search into the Bookmanager book and take 
you directly to the result.

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Dyck, Lionel B. (TRA)
> Sent: Thursday, April 27, 2017 9:55 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library:
> z/OS V2R2 Collection, March 2017
> 
> Tom - I'm in total agreement with you.  I never liked BookManager on
> Windows and I prefer PDF's as I don't need a network connection, I can place
> the one's I need on my iPad for easy access if my PC is down, and the
> advanced search to cross PDF boundaries is excellent.
> 
> It works so please don't break it.
> 
> --
> Lionel B. Dyck
> Mainframe Systems Programmer - TRA
> Enterprise Operations (Station 200) (005OP6.3.10) Information and
> Technology, IT Operations and Services
> 
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Tom Brennan
> Sent: Thursday, April 27, 2017 11:30 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS
> V2R2 Collection, March 2017
> 
> A year or more ago I went looking for the latest PDF documents for an
> Omegamon sub-product (Networks I think?) and couldn't find them.  I did find
> PDF's for the previous version so I sent an email to one of the authors and
> got a response:  There were no PDF's for the latest, only the web-based doc,
> and if I wanted a PDF I could click buttons on the web page to grab all the
> pages and put them into a PDF.  That ended up just like you said, a PDF of
> relatively unrelated snippets :)
> 
> Very odd, and I hope that isn't the way of the future.  To me, the online
> snippets are useful only if I get lucky and find what I need via search.  But
> once I'm reading a section, even with the KC next/prev page clicking (like the
> left/right arrows which don't seem to work all the time), I usually give up
> quickly and just go download something I can read - the PDF manual.
> 
> Plus, with the PDF (even if it's not completely up-to-date) I have information
> on my PC without needing an IP connection, which could be important in a
> pinch.
> 
> Now don't take me too seriously, since I may be a bit unusual because I never
> liked Bookmanager on my PC either, something people seem to like a lot
> here.
> 
> Dana Mitchell wrote:
> > On Thu, 27 Apr 2017 07:31:11 +0200, Peter Hunkeler 
> wrote:
> >
> >>Now, I B M  w i l l   y o u   p l e a s e,   p l e a s e  n o t   a b a n d 
> >>o n   t h i s
> "Download books in PDF format" support ever!!! KC has its place but will
> never be a replacement for PDFs to be read offline!
> >>
> >
> >
> > My biggest fear is that IBM will continue moving the z/OS documentation in
> the direction it has taken with the IBM i docs in the past.   The main content
> in the Knowledge Center consists of small, one or two paragraph tidbits, 
> filled
> with links to other items, making it almost impossible to read in depth about 
> a
> topic for a good overview.Then the PDF version is just the same little
> snippets from the KC, strung together into a pdf document.
> >
> > Dana
> >
> > --
> > 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


USS ACL presentation

2017-04-27 Thread Roach, Dennis
Does anyone know of a good USS ACL presentation?

We have outgrown the USS permission bits due to limitations.

What is the minimum required to give read/write/exec to users/groups for a 
particular directory? ie /public and everything below it.

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


Re: JZOS Java CLASSPATH

2017-04-27 Thread Carmen Vitullo
Thanks Kirk - it appears its does, not knowng the enviorment myself since it 
was designed and developed on HP/UX we surly don't know what's needed and I'm 
not sure the developers know or care to know, we're looking to optimize these 
java batch processes eventually, first we need to prove it works and is easily 
portable, so far I see the scripts themselves need to be modified, they're 
still using ksh 
thanks so much for your insight - this will be interesting, nice to see someone 
wanting to port from a distributed system to Z :) 
Carmen 

- Original Message -

From: "Kirk Wolf"  
To: IBM-MAIN@LISTSERV.UA.EDU 
Sent: Thursday, April 27, 2017 2:47:09 PM 
Subject: Re: JZOS Java CLASSPATH 

the JZOS batch launcher does work as designed - it allows you to use a z/OS 
Unix shell script to configure everything including CLASSPATH. 

What it doesn't do is what the new "java" command line launcher for the JVM 
does: it expands directory wildcards in CLASSPATH to point to all jars in 
that directory (something easy to do in the JZOS shell script). I see it 
as a nice convenience since it is a common thing to do and most Java users 
don't know their shell :-) 

Kirk Wolf 
Dovetailed Technologies 
http://dovetail.com 

On Thu, Apr 27, 2017 at 1:31 PM, Carmen Vitullo  wrote: 

> Funny I'm looking at both right now, getting ready for a migration of an 
> application from Java on Unix to Java on z/OS, I've been testing the BCD 
> batch process and the JZOS proc, the scripting seems to work as designed, 
> and seeing how it works with a small test I wonder if that's overkill to 
> allow Java to load all the class libraries ? 
> I'll need some real testing with an application right now using the 
> defaults I set 
> 
> 
> 
> APP_HOME=$JAVA_HOME <--- change 
> CLASSPATH=$APP_HOME:"${JAVA_HOME}"/lib:"${JAVA_HOME}"/lib/ext 
> # Add Application required jars to end of CLASSPATH 
> for i in "${APP_HOME}"/*.jar; do 
> CLASSPATH="$CLASSPATH":"$i" 
> done 
> export CLASSPATH="$CLASSPATH": 
> 
> 
> Carmen 
> 
> - Original Message - 
> 
> From: "Kirk Wolf"  
> To: IBM-MAIN@LISTSERV.UA.EDU 
> Sent: Thursday, April 27, 2017 12:23:27 PM 
> Subject: Re: JZOS Java CLASSPATH 
> 
> Yes, this is a feature of the "java" command JVM launcher that is not 
> present in the JZOS batch launcher and the "java" command launcher. 
> 
> Both launchers invoke the JVM launcher API and pass in "-Djava.class.path=" 
> as an option using $CLASSPATH, but the "java" command launcher seems to be 
> enhanced (somewhat recently) to expand an entry with a basename of "*" to 
> include all of the jar files in that directory: 
> http://docs.oracle.com/javase/6/docs/technotes/tools/ 
> windows/classpath.html 
> 
> And yet I fail to see why this is an issue since the JZOS sample JCL shows 
> how to use the shell language to handle this - with more flexibility. 
> 
> For example, the "java" command launcher can't do this: 
> 
> for i in "${MYDIR}"/foo*.jar; do 
> CLASSPATH="$CLASSPATH":"$i" 
> done 
> 
> 
> 
> Kirk Wolf 
> Dovetailed Technologies 
> http://dovetail.com 
> 
> On Thu, Apr 27, 2017 at 7:22 AM, Andrew Rowley < 
> and...@blackhillsoftware.com 
> > wrote: 
> 
> > On 27/04/2017 09:49 PM, Peter Hunkeler wrote: 
> > 
> >> You need to escape the * so that the shell will assign it to the 
> >> environment variable instead of "resolving" it. Try: 
> >> 
> >> I don't think so. I have a small Java program to display the CLASSPATH 
> > environement variable and what it resolves to: 
> > 
> > import java.net.URL; 
> > import java.net.URLClassLoader; 
> > 
> > public class ClassPath { 
> > public static void main (String args[]) { 
> > System.out.println(System.getenv("CLASSPATH")); 
> > ClassLoader cl = ClassLoader.getSystemClassLoader(); 
> > URL[] urls = ((URLClassLoader)cl).getURLs(); 
> > for(URL url: urls){ 
> > System.out.println(url.getFile()); 
> > } 
> > } 
> > } 
> > 
> > Under JZOS: 
> > 
> > JVMJZBL1023N Invoking ClassPath.main()... 
> > JVMJZBL1024N ClassPath.main() completed. 
> > JVMJZBL1021N JZOS batch launcher completed, return code=0 
> > /home/andrewr/java/target:/usr/lpp/java/J8.0/lib:/usr/lpp/ 
> > java/J8.0/lib/ext:/home/andrewr/java/lib/*: 
> > /home/andrewr/java/target/ 
> > /VERSYSB/usr/lpp/java/J8.0/lib/ 
> > /VERSYSB/usr/lpp/java/J8.0/lib/ext/ 
> > /home/andrewr/java/lib/* 
> > /home/andrewr/ 
> > 
> > Under BPXBATCH: 
> > 
> > java/target:java/lib/* 
> > /home/andrewr/java/target/ 
> > /home/andrewr/java/lib/easysmf-je-1.5.2.jar 
> > /home/andrewr/java/lib/easysmf-je-samples-1.5.2.jar 
> > /home/andrewr/java/lib/javax.mail.jar 
> > /home/andrewr/java/lib/slf4j-api-1.7.21.jar 
> > /home/andrewr/java/lib/slf4j-simple-1.7.21.jar 
> > /home/andrewr/java/lib/jsoup-1.10.2.jar 
> > 
> > In both cases I can see the asterisk in the CLASSPATH variable. Under 
> > BPXBATCH the jars in that directory are in the classpath as expected. 
> Under 
> > JZOS the asterisk 

Re: JZOS Java CLASSPATH

2017-04-27 Thread Kirk Wolf
the JZOS batch launcher does work as designed - it allows you to use a z/OS
Unix shell script to configure everything including CLASSPATH.

What it doesn't do is what the new "java" command line launcher for the JVM
does: it expands directory wildcards in CLASSPATH to point to all jars in
that directory (something easy to do in the JZOS shell script).   I see it
as a nice convenience since it is a common thing to do and most Java users
don't know their shell :-)

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Thu, Apr 27, 2017 at 1:31 PM, Carmen Vitullo  wrote:

> Funny I'm looking at both right now, getting ready for a migration of an
> application from Java on Unix to Java on z/OS, I've been testing the BCD
> batch process and the JZOS proc, the scripting seems to work as designed,
> and seeing how it works with a small test I wonder if that's overkill to
> allow Java to load all the class libraries ?
> I'll need some real testing with an application right now using the
> defaults I set
>
>
>
> APP_HOME=$JAVA_HOME <--- change
> CLASSPATH=$APP_HOME:"${JAVA_HOME}"/lib:"${JAVA_HOME}"/lib/ext
> # Add Application required jars to end of CLASSPATH
> for i in "${APP_HOME}"/*.jar; do
> CLASSPATH="$CLASSPATH":"$i"
> done
> export CLASSPATH="$CLASSPATH":
>
>
> Carmen
>
> - Original Message -
>
> From: "Kirk Wolf" 
> To: IBM-MAIN@LISTSERV.UA.EDU
> Sent: Thursday, April 27, 2017 12:23:27 PM
> Subject: Re: JZOS Java CLASSPATH
>
> Yes, this is a feature of the "java" command JVM launcher that is not
> present in the JZOS batch launcher and the "java" command launcher.
>
> Both launchers invoke the JVM launcher API and pass in "-Djava.class.path="
> as an option using $CLASSPATH, but the "java" command launcher seems to be
> enhanced (somewhat recently) to expand an entry with a basename of "*" to
> include all of the jar files in that directory:
> http://docs.oracle.com/javase/6/docs/technotes/tools/
> windows/classpath.html
>
> And yet I fail to see why this is an issue since the JZOS sample JCL shows
> how to use the shell language to handle this - with more flexibility.
>
> For example, the "java" command launcher can't do this:
>
> for i in "${MYDIR}"/foo*.jar; do
> CLASSPATH="$CLASSPATH":"$i"
> done
>
>
>
> Kirk Wolf
> Dovetailed Technologies
> http://dovetail.com
>
> On Thu, Apr 27, 2017 at 7:22 AM, Andrew Rowley <
> and...@blackhillsoftware.com
> > wrote:
>
> > On 27/04/2017 09:49 PM, Peter Hunkeler wrote:
> >
> >> You need to escape the * so that the shell will assign it to the
> >> environment variable instead of "resolving" it. Try:
> >>
> >> I don't think so. I have a small Java program to display the CLASSPATH
> > environement variable and what it resolves to:
> >
> > import java.net.URL;
> > import java.net.URLClassLoader;
> >
> > public class ClassPath {
> > public static void main (String args[]) {
> > System.out.println(System.getenv("CLASSPATH"));
> > ClassLoader cl = ClassLoader.getSystemClassLoader();
> > URL[] urls = ((URLClassLoader)cl).getURLs();
> > for(URL url: urls){
> > System.out.println(url.getFile());
> > }
> > }
> > }
> >
> > Under JZOS:
> >
> > JVMJZBL1023N Invoking ClassPath.main()...
> > JVMJZBL1024N ClassPath.main() completed.
> > JVMJZBL1021N JZOS batch launcher completed, return code=0
> > /home/andrewr/java/target:/usr/lpp/java/J8.0/lib:/usr/lpp/
> > java/J8.0/lib/ext:/home/andrewr/java/lib/*:
> > /home/andrewr/java/target/
> > /VERSYSB/usr/lpp/java/J8.0/lib/
> > /VERSYSB/usr/lpp/java/J8.0/lib/ext/
> > /home/andrewr/java/lib/*
> > /home/andrewr/
> >
> > Under BPXBATCH:
> >
> > java/target:java/lib/*
> > /home/andrewr/java/target/
> > /home/andrewr/java/lib/easysmf-je-1.5.2.jar
> > /home/andrewr/java/lib/easysmf-je-samples-1.5.2.jar
> > /home/andrewr/java/lib/javax.mail.jar
> > /home/andrewr/java/lib/slf4j-api-1.7.21.jar
> > /home/andrewr/java/lib/slf4j-simple-1.7.21.jar
> > /home/andrewr/java/lib/jsoup-1.10.2.jar
> >
> > In both cases I can see the asterisk in the CLASSPATH variable. Under
> > BPXBATCH the jars in that directory are in the classpath as expected.
> Under
> > JZOS the asterisk itself ends up as an entry.
> >
> >
> > --
> > 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 

SOMAXCONN in TCPIP

2017-04-27 Thread Nelson, Judith
We have a request from a vendor to increase the SOMAXCONN in the TCPIP profile. 
It is currently set to 10.
I would like to know if there would be potential problems if we do the increase.
FYI, we recently upgraded from z/os 1.13 to z/os 2.2.

Any information on this would be appreciated.
Judith Nelson  | Senior Systems Programmer
Sammons(r) Financial Group Member Companies
One Sammons Plaza  | Sioux Falls, SD 57193
Phone: (605) 373-2321
jnel...@sfgmembers.com


The information contained in this message is confidential, protected from 
disclosure and may be legally privileged.  If the reader of this message is not 
the intended recipient or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified that any disclosure, 
distribution, copying, or any action taken or action omitted in reliance on it, 
is strictly prohibited and may be unlawful.  If you have received this 
communication in error, please notify us immediately by replying to this 
message and destroy the material in its entirety, whether in electronic or hard 
copy format.  Thank you.

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


Re: FTP Failing with space issues

2017-04-27 Thread Paul Gilmartin
On Thu, 27 Apr 2017 13:26:30 -0500, Ron Thomas wrote:

>we are looking at copy the file to a GDG,  once it reaches the z/OS directory 
>using the below job. so what i am looking is how we can automate this job so 
>once file reaches the unix directory it copies and delete the source ?
>
Heck; I don't mind getting fancy and embellishing my previous idea:

cat linux.file | ssh user@zOS "cat >/export/home/PX1COMT/test.txt
echo \"\\
//COPYSTEP EXEC PGM=IKJEFT01
//FILE DD PATH='/export/home/PX1COMT/test.txt',PATHDISP=DELETE
//PTST DD DISP=SHR,DSN=PTHMICST.TEST.R1.Y(+1)
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
OCOPY INDD(FILE) OUTDD(PTST) TEXT\" | /bin/submit"

-- gil

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


Re: JZOS Java CLASSPATH

2017-04-27 Thread Carmen Vitullo
Thanks Denis, this make sense and that's what I was hoping, I'm trying to port 
the Unix ksh script file to a jzos process, that seems almost straight forward, 
I'll be meeting with the developers next week and try to setup a real lfe test 
for the POC. 
I'm wondering, since the class libraries are in a zfs file system, one of my 
colleagues wanted to test loading the Java filesystem into storage using hiper 
batch, has anyone attempted this? is this a solution? 
thanks 


Carmen 


- Original Message -

From: "Denis" <01664d8ede6c-dmarc-requ...@listserv.ua.edu> 
To: IBM-MAIN@LISTSERV.UA.EDU 
Sent: Thursday, April 27, 2017 1:34:26 PM 
Subject: Re: JZOS Java CLASSPATH 

Hi Carmen, 

as the classpath size affects performance, its definitly a good idea to limit 
the jars and its contents to what is required. 
In addition some customers require a certain order of the jar files in some 
cases and as such, wildcards are not an option, since they produce 
unpredictable results with the order of the jars. 

Denis. 


-Original Message- 
From: Carmen Vitullo  
To: IBM-MAIN  
Sent: Thu, Apr 27, 2017 8:31 pm 
Subject: Re: JZOS Java CLASSPATH 

Funny I'm looking at both right now, getting ready for a migration of an 
application from Java on Unix to Java on z/OS, I've been testing the BCD batch 
process and the JZOS proc, the scripting seems to work as designed, and seeing 
how it works with a small test I wonder if that's overkill to allow Java to 
load all the class libraries ? 
I'll need some real testing with an application right now using the defaults I 
set 



APP_HOME=$JAVA_HOME <--- change 
CLASSPATH=$APP_HOME:"${JAVA_HOME}"/lib:"${JAVA_HOME}"/lib/ext 
# Add Application required jars to end of CLASSPATH 
for i in "${APP_HOME}"/*.jar; do 
CLASSPATH="$CLASSPATH":"$i" 
done 
export CLASSPATH="$CLASSPATH": 


Carmen 

- Original Message - 

From: "Kirk Wolf"  
To: IBM-MAIN@LISTSERV.UA.EDU 
Sent: Thursday, April 27, 2017 12:23:27 PM 
Subject: Re: JZOS Java CLASSPATH 

Yes, this is a feature of the "java" command JVM launcher that is not 
present in the JZOS batch launcher and the "java" command launcher. 

Both launchers invoke the JVM launcher API and pass in "-Djava.class.path=" 
as an option using $CLASSPATH, but the "java" command launcher seems to be 
enhanced (somewhat recently) to expand an entry with a basename of "*" to 
include all of the jar files in that directory: 
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html 

And yet I fail to see why this is an issue since the JZOS sample JCL shows 
how to use the shell language to handle this - with more flexibility. 

For example, the "java" command launcher can't do this: 

for i in "${MYDIR}"/foo*.jar; do 
CLASSPATH="$CLASSPATH":"$i" 
done 



Kirk Wolf 
Dovetailed Technologies 
http://dovetail.com 

On Thu, Apr 27, 2017 at 7:22 AM, Andrew Rowley  wrote: 

> On 27/04/2017 09:49 PM, Peter Hunkeler wrote: 
> 
>> You need to escape the * so that the shell will assign it to the 
>> environment variable instead of "resolving" it. Try: 
>> 
>> I don't think so. I have a small Java program to display the CLASSPATH 
> environement variable and what it resolves to: 
> 
> import java.net.URL; 
> import java.net.URLClassLoader; 
> 
> public class ClassPath { 
> public static void main (String args[]) { 
> System.out.println(System.getenv("CLASSPATH")); 
> ClassLoader cl = ClassLoader.getSystemClassLoader(); 
> URL[] urls = ((URLClassLoader)cl).getURLs(); 
> for(URL url: urls){ 
> System.out.println(url.getFile()); 
> } 
> } 
> } 
> 
> Under JZOS: 
> 
> JVMJZBL1023N Invoking ClassPath.main()... 
> JVMJZBL1024N ClassPath.main() completed. 
> JVMJZBL1021N JZOS batch launcher completed, return code=0 
> /home/andrewr/java/target:/usr/lpp/java/J8.0/lib:/usr/lpp/ 
> java/J8.0/lib/ext:/home/andrewr/java/lib/*: 
> /home/andrewr/java/target/ 
> /VERSYSB/usr/lpp/java/J8.0/lib/ 
> /VERSYSB/usr/lpp/java/J8.0/lib/ext/ 
> /home/andrewr/java/lib/* 
> /home/andrewr/ 
> 
> Under BPXBATCH: 
> 
> java/target:java/lib/* 
> /home/andrewr/java/target/ 
> /home/andrewr/java/lib/easysmf-je-1.5.2.jar 
> /home/andrewr/java/lib/easysmf-je-samples-1.5.2.jar 
> /home/andrewr/java/lib/javax.mail.jar 
> /home/andrewr/java/lib/slf4j-api-1.7.21.jar 
> /home/andrewr/java/lib/slf4j-simple-1.7.21.jar 
> /home/andrewr/java/lib/jsoup-1.10.2.jar 
> 
> In both cases I can see the asterisk in the CLASSPATH variable. Under 
> BPXBATCH the jars in that directory are in the classpath as expected. Under 
> JZOS the asterisk itself ends up as an entry. 
> 
> 
> -- 
> For IBM-MAIN subscribe / signoff / archive access instructions, 
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN 
> 

-- 
For IBM-MAIN 

Re: Terminology - Datasets

2017-04-27 Thread Frank Swarbrick
Personally I think we should call them "MVS data sets" or "MVS files", as 
distinguished from and "MVS Unix files".  We still have "MVS JCL", so why muddy 
the waters whenever IBM marketing decides to change the name of the "operating 
system" again?

Seems like a more generic name for PDS/PDSE is needed, though.  I don't suppose 
"MVS library" is reason able.  Certainly (to me) an "MVS library member" is a 
member that is in either a PDS or PDSE (library) data set.  So "MVS library" 
for PDS/PDSE/PDS(next) and "MVS Unix directory" for, well, and MVS Unix 
directory.

To summarize, I'd be comfortable with all of the following terms:

- MVS data sets or MVS files, including:
  - MVS sequential data sets or MVS sequential files
  - MVS VSAM data sets or MVS VSAM files (or just VSAM files)
  - MVS libraries, including:
- (MVS) PDS libraries and (MVS) PDSE libraries
  - Are there other MVS non-Unix file/data set types?

- MVS Unix file system, including HFS and zFS (and others I may not know about) 
and containing:
  - MVS Unix directories, containing:
- MVS Unix files

On person's thoughts...


From: IBM Mainframe Discussion List  on behalf of 
Tony Harminc 
Sent: Wednesday, April 26, 2017 6:53 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Terminology - Datasets

On 26 April 2017 at 20:27, Paul Gilmartin <
000433f07816-dmarc-requ...@listserv.ua.edu> wrote:

> But what happens when "z/OS" goes the way of "OS/390" and "MVS 5.2"?
>

Yeah, that happens too. But it's a pretty easy context-free change to make,
and of course we've had to do it. Not that customers wouldn't continue to
understand "OS/390", but it makes it look as though the doc hasn't been
updated for years. (The first time around, we briefly had a lot of "an z/OS
dataset" and the like from a careless change all command.)

>
> >... So that's what we say now: "UNIX
> >file", or in the rare case it's possible to be confused with a file on
> >another UNIX system, "z/OS UNIX file".
> >
> Is that intended to exclude NFS files (and possibly others) which
> don't support zFS extended attributes?  (Don't know about TFS.)
>

Not explicitly. But I can't imagine a product the customer knows is going
to run as a z/OS started task with significant performance requirements is
going to decide to put a transaction-containing file on an NFS server on a
Linux box across the country. Nor, for that matter, are they going to make
it a temporary file.

What about sockets?  Can SVC 99 allocate a DDNAME to a socket?
>

I'm willing to bet not. Can JCL?

Tony H.

--
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: FTP Failing with space issues

2017-04-27 Thread John McKown
On Thu, Apr 27, 2017 at 1:26 PM, Ron Thomas  wrote:

> we are looking at copy the file to a GDG,  once it reaches the z/OS
> directory using the below job. so what i am looking is how we can automate
> this job so once file reaches the unix directory it copies and delete the
> source ?
>
> //COPYSTEP EXEC PGM=IKJEFT01
> //FILE DD PATH='/export/home/PX1COMT/test.txt'
> //PTST DD DISP=SHR,DSN=PTHMICST.TEST.R1.Y(+1)
> //SYSTSPRT DD SYSOUT=*
> //SYSTSIN DD *
> OCOPY INDD(FILE) OUTDD(PTST) TEXT
>
> what i am thinking is scheduling the job at different time of the day . is
> this a good option or there is any other way to do it ?
>

​That is basically the only method that I know of which does not require
using an SMF IEFU8n exit to trap SMF record type 92, subtype 11 (file
closed) or type 14 (file renamed).​

​I wish that IBM had something equivalent to the Linux "inotify" system.
That is an API which allows a daemon (such as "icrond") to monitor one or
more files or directory for changes. The "icrond" is a daemon somewhat akin
to "icron" which makes it easier to say "if this file/directory changes run
this command/script".​


> Regards
> Ron T
>
>
-- 
Advertising is a valuable economic factor because it is the cheapest way of
selling goods, particularly if the goods are worthless. -- Sinclair Lewis


Maranatha! <><
John McKown

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


Re: JZOS Java CLASSPATH

2017-04-27 Thread Denis
Hi Carmen,
 
as the classpath size affects performance, its definitly a good idea to limit 
the jars and its contents to what is required.
In addition some customers require a certain order of the jar files in some 
cases and as such, wildcards are not an option, since they produce 
unpredictable results with the order of the jars.
 
Denis.
 
 
-Original Message-
From: Carmen Vitullo 
To: IBM-MAIN 
Sent: Thu, Apr 27, 2017 8:31 pm
Subject: Re: JZOS Java CLASSPATH

Funny I'm looking at both right now, getting ready for a migration of an 
application from Java on Unix to Java on z/OS, I've been testing the BCD batch 
process and the JZOS proc, the scripting seems to work as designed, and seeing 
how it works with a small test I wonder if that's overkill to allow Java to 
load all the class libraries ? 
I'll need some real testing with an application right now using the defaults I 
set 



APP_HOME=$JAVA_HOME <--- change 
CLASSPATH=$APP_HOME:"${JAVA_HOME}"/lib:"${JAVA_HOME}"/lib/ext 
# Add Application required jars to end of CLASSPATH 
for i in "${APP_HOME}"/*.jar; do 
CLASSPATH="$CLASSPATH":"$i" 
done 
export CLASSPATH="$CLASSPATH": 


Carmen 

- Original Message -

From: "Kirk Wolf"  
To: IBM-MAIN@LISTSERV.UA.EDU 
Sent: Thursday, April 27, 2017 12:23:27 PM 
Subject: Re: JZOS Java CLASSPATH 

Yes, this is a feature of the "java" command JVM launcher that is not 
present in the JZOS batch launcher and the "java" command launcher. 

Both launchers invoke the JVM launcher API and pass in "-Djava.class.path=" 
as an option using $CLASSPATH, but the "java" command launcher seems to be 
enhanced (somewhat recently) to expand an entry with a basename of "*" to 
include all of the jar files in that directory: 
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html 

And yet I fail to see why this is an issue since the JZOS sample JCL shows 
how to use the shell language to handle this - with more flexibility. 

For example, the "java" command launcher can't do this: 

for i in "${MYDIR}"/foo*.jar; do 
CLASSPATH="$CLASSPATH":"$i" 
done 



Kirk Wolf 
Dovetailed Technologies 
http://dovetail.com 

On Thu, Apr 27, 2017 at 7:22 AM, Andrew Rowley  wrote: 

> On 27/04/2017 09:49 PM, Peter Hunkeler wrote: 
> 
>> You need to escape the * so that the shell will assign it to the 
>> environment variable instead of "resolving" it. Try: 
>> 
>> I don't think so. I have a small Java program to display the CLASSPATH 
> environement variable and what it resolves to: 
> 
> import java.net.URL; 
> import java.net.URLClassLoader; 
> 
> public class ClassPath { 
> public static void main (String args[]) { 
> System.out.println(System.getenv("CLASSPATH")); 
> ClassLoader cl = ClassLoader.getSystemClassLoader(); 
> URL[] urls = ((URLClassLoader)cl).getURLs(); 
> for(URL url: urls){ 
> System.out.println(url.getFile()); 
> } 
> } 
> } 
> 
> Under JZOS: 
> 
> JVMJZBL1023N Invoking ClassPath.main()... 
> JVMJZBL1024N ClassPath.main() completed. 
> JVMJZBL1021N JZOS batch launcher completed, return code=0 
> /home/andrewr/java/target:/usr/lpp/java/J8.0/lib:/usr/lpp/ 
> java/J8.0/lib/ext:/home/andrewr/java/lib/*: 
> /home/andrewr/java/target/ 
> /VERSYSB/usr/lpp/java/J8.0/lib/ 
> /VERSYSB/usr/lpp/java/J8.0/lib/ext/ 
> /home/andrewr/java/lib/* 
> /home/andrewr/ 
> 
> Under BPXBATCH: 
> 
> java/target:java/lib/* 
> /home/andrewr/java/target/ 
> /home/andrewr/java/lib/easysmf-je-1.5.2.jar 
> /home/andrewr/java/lib/easysmf-je-samples-1.5.2.jar 
> /home/andrewr/java/lib/javax.mail.jar 
> /home/andrewr/java/lib/slf4j-api-1.7.21.jar 
> /home/andrewr/java/lib/slf4j-simple-1.7.21.jar 
> /home/andrewr/java/lib/jsoup-1.10.2.jar 
> 
> In both cases I can see the asterisk in the CLASSPATH variable. Under 
> BPXBATCH the jars in that directory are in the classpath as expected. Under 
> JZOS the asterisk itself ends up as an entry. 
> 
> 
> -- 
> 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: JZOS Java CLASSPATH

2017-04-27 Thread Carmen Vitullo
Funny I'm looking at both right now, getting ready for a migration of an 
application from Java on Unix to Java on z/OS, I've been testing the BCD batch 
process and the JZOS proc, the scripting seems to work as designed, and seeing 
how it works with a small test I wonder if that's overkill to allow Java to 
load all the class libraries ? 
I'll need some real testing with an application right now using the defaults I 
set 



APP_HOME=$JAVA_HOME <--- change 
CLASSPATH=$APP_HOME:"${JAVA_HOME}"/lib:"${JAVA_HOME}"/lib/ext 
# Add Application required jars to end of CLASSPATH 
for i in "${APP_HOME}"/*.jar; do 
CLASSPATH="$CLASSPATH":"$i" 
done 
export CLASSPATH="$CLASSPATH": 


Carmen 

- Original Message -

From: "Kirk Wolf"  
To: IBM-MAIN@LISTSERV.UA.EDU 
Sent: Thursday, April 27, 2017 12:23:27 PM 
Subject: Re: JZOS Java CLASSPATH 

Yes, this is a feature of the "java" command JVM launcher that is not 
present in the JZOS batch launcher and the "java" command launcher. 

Both launchers invoke the JVM launcher API and pass in "-Djava.class.path=" 
as an option using $CLASSPATH, but the "java" command launcher seems to be 
enhanced (somewhat recently) to expand an entry with a basename of "*" to 
include all of the jar files in that directory: 
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html 

And yet I fail to see why this is an issue since the JZOS sample JCL shows 
how to use the shell language to handle this - with more flexibility. 

For example, the "java" command launcher can't do this: 

for i in "${MYDIR}"/foo*.jar; do 
CLASSPATH="$CLASSPATH":"$i" 
done 



Kirk Wolf 
Dovetailed Technologies 
http://dovetail.com 

On Thu, Apr 27, 2017 at 7:22 AM, Andrew Rowley  wrote: 

> On 27/04/2017 09:49 PM, Peter Hunkeler wrote: 
> 
>> You need to escape the * so that the shell will assign it to the 
>> environment variable instead of "resolving" it. Try: 
>> 
>> I don't think so. I have a small Java program to display the CLASSPATH 
> environement variable and what it resolves to: 
> 
> import java.net.URL; 
> import java.net.URLClassLoader; 
> 
> public class ClassPath { 
> public static void main (String args[]) { 
> System.out.println(System.getenv("CLASSPATH")); 
> ClassLoader cl = ClassLoader.getSystemClassLoader(); 
> URL[] urls = ((URLClassLoader)cl).getURLs(); 
> for(URL url: urls){ 
> System.out.println(url.getFile()); 
> } 
> } 
> } 
> 
> Under JZOS: 
> 
> JVMJZBL1023N Invoking ClassPath.main()... 
> JVMJZBL1024N ClassPath.main() completed. 
> JVMJZBL1021N JZOS batch launcher completed, return code=0 
> /home/andrewr/java/target:/usr/lpp/java/J8.0/lib:/usr/lpp/ 
> java/J8.0/lib/ext:/home/andrewr/java/lib/*: 
> /home/andrewr/java/target/ 
> /VERSYSB/usr/lpp/java/J8.0/lib/ 
> /VERSYSB/usr/lpp/java/J8.0/lib/ext/ 
> /home/andrewr/java/lib/* 
> /home/andrewr/ 
> 
> Under BPXBATCH: 
> 
> java/target:java/lib/* 
> /home/andrewr/java/target/ 
> /home/andrewr/java/lib/easysmf-je-1.5.2.jar 
> /home/andrewr/java/lib/easysmf-je-samples-1.5.2.jar 
> /home/andrewr/java/lib/javax.mail.jar 
> /home/andrewr/java/lib/slf4j-api-1.7.21.jar 
> /home/andrewr/java/lib/slf4j-simple-1.7.21.jar 
> /home/andrewr/java/lib/jsoup-1.10.2.jar 
> 
> In both cases I can see the asterisk in the CLASSPATH variable. Under 
> BPXBATCH the jars in that directory are in the classpath as expected. Under 
> JZOS the asterisk itself ends up as an entry. 
> 
> 
> -- 
> 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: How to parse rows using SORT

2017-04-27 Thread Bill Ashton
Hi Kolusu, I have a slightly different twist on this request for a
different need.

Here, I will have multiple FTP directory commands' output, and want to
capture only the most recent 3 filenames in each directory. The output will
all be in one single file for further processing.

Now I know I want to capture only the EZA1701 message to extract the
directory name, and the EZA2284I messages for each file, and I want to
create output files with the command: "get dirname/filename" for only the
most recent files.

I have figured out how to change the Month value to a number and to reorder
the date to be yearmmdd, but I could not figure out how to replace the
space with a zero in the first digit of the day and I could not figure out
how to get the directory name on each file before sorting. I suppose the
space in the day value is not a problem as it would sort lower just like
zero, but I would rather it be specified accurately. Also, with the chance
that the date could be in a different column based on filesizes in the
directory, the absolute value on the column for the CHANGE won't always
work (I show that by pushing the last set to the right one column).

I hope you are not troubled with this request, and I appreciate your help.

I have attached some JCL and data with the first part of my process
(although you might change it anyway).

Thanks again!
Bill


On Mon, Apr 24, 2017 at 10:03 AM, Bill Ashton 
wrote:

> Kolusu, thanks for the fix - I had not noticed this problem in my test
> cases, but now believe I have a more accurate process. I appreciate your
> time and attention! Have a magnificent Monday!
>
> On Fri, Apr 21, 2017 at 5:51 PM, Sri h Kolusu  wrote:
>
>> Bill,
>>
>> I apologize for the oversight in parsing the dataset name.  As soon as I
>> sent my earlier reply I realized that I did not cover all the scenarios
>> for the dataset name.  If the HLQ is less than 6 bytes the parse would
>> grab the time which starts before the dataset name.
>>
>> for example the records in red color
>>
>> Dec 29 10:23 HOLDDATA.BIN
>> Apr  3 12:28 REPORT1.TXT
>> Nov 15 11:33 NEWDATA.BIN
>> Nov 15 11:34 a.BIN
>> Nov 15 11:35 abc.BIN
>> Nov 15 11:36 abcd.BIN
>> Nov 15 11:37 abcde.BIN
>> Nov 15 11:38 abcdef.BIN
>> Nov 15 11:39 abcdefg.BIN
>> Nov 15 11:40 abcdefgh.BIN
>>
>> So you need to change your INREC IFTHEN statements to handle these dataset
>> names.  Here are the updated control cards ( Only the INREC IFTHEN
>> statments need to be changed.)
>>
>> INREC IFOUTLEN=80,
>>   IFTHEN=(WHEN=(1,3,CH,EQ,C'250'),
>>PARSE=(%01=(STARTAFT=C'"',ENDBEFR=C'"',FIXLEN=50)),
>>BUILD=(C'250 ',%01)),
>>
>>   IFTHEN=(WHEN=(1,3,CH,EQ,C'EZA'),
>>PARSE=(%=(ENDAT=C'.BIN'),
>> %02=(SUBPOS=12,FIXLEN=12)),
>>BUILD=(C'BIN ',%02),HIT=NEXT),
>>
>>   IFTHEN=(WHEN=(1,3,CH,EQ,C'BIN'),
>>   OVERLAY=(5:5,12,JFY=(SHIFT=LEFT)),HIT=NEXT),
>>
>>   IFTHEN=(WHEN=(1,3,CH,EQ,C'BIN',AND,5,8,SS,EQ,C' '),
>>PARSE=(%03=(ABSPOS=5,STARTAFT=C' ',ENDAT=C'.BIN',FIXLEN=12)),
>> BUILD=(01:C'BIN ',56:%03)),
>>
>>   IFTHEN=(WHEN=(1,3,CH,EQ,C'BIN',AND,5,8,SS,NE,C' '),
>> BUILD=(01:C'BIN ',56:5,12))
>>
>>
>>
>> Further if you have any questions please let me know
>>
>> Thanks,
>> Kolusu
>> DFSORT Development
>>
>>
>>
>> From:   Bill Ashton 
>> To: IBM-MAIN@LISTSERV.UA.EDU
>> Date:   04/21/2017 01:41 PM
>> Subject:Re: How to parse rows using SORT
>> Sent by:IBM Mainframe Discussion List 
>>
>>
>>
>> Thanks, Kolusu - that is better now! I will go and learn about HIT=NEXT,
>> as
>> I have not run into that before.
>>
>> Have a good weekend!
>>
>>
>> On Fri, Apr 21, 2017 at 4:24 PM, Sri h Kolusu  wrote:
>>
>> > Bill,
>> >
>> > You really don't need to complicate the control to get the desired
>> > results. I have optimized your control cards a bit which would give you
>> > the desired results
>> >
>> > //SYSINDD *
>> >   OPTION COPY
>> >   INCLUDE COND=(1,003,CH,EQ,C'250',OR,
>> > 1,100,SS,EQ,C'.BIN ')
>> >
>> >   INREC IFOUTLEN=80,
>> > IFTHEN=(WHEN=(1,3,CH,EQ,C'250'),
>> >  PARSE=(%01=(STARTAFT=C'"',ENDBEFR=C'"',FIXLEN=50)),
>> >  BUILD=(C'250 ',%01)),
>> >
>> > IFTHEN=(WHEN=(1,3,CH,EQ,C'EZA'),
>> >  PARSE=(%=(ENDAT=C'.BIN'),
>> >   %02=(SUBPOS=12,FIXLEN=12)),
>> >  BUILD=(C'BIN ',%02),HIT=NEXT),
>> >
>> > IFTHEN=(WHEN=(1,3,CH,EQ,C'BIN'),
>> >  PARSE=(%03=(STARTAFT=C' ',ENDAT=C'.BIN',FIXLEN=12)),
>> >   BUILD=(01:C'BIN ',56:%03))
>> >
>> >   OUTREC IFTHEN=(WHEN=GROUP,BEGIN=(1,3,CH,EQ,C'250'),PUSH=(05:5,50))
>> >
>> >   OUTFIL INCLUDE=(1,3,CH,EQ,C'BIN'),
>> >   BUILD=(05,75,SQZ=(SHIFT=LEFT,LEAD=C'get  ',MID=C'/',
>> > TRAIL=C' //DD:LIST',LENGTH=80))
>> > //*
>> >
>> > The output from this job is
>> >
>> > get  

Re: FTP Failing with space issues

2017-04-27 Thread Ron Thomas
we are looking at copy the file to a GDG,  once it reaches the z/OS directory 
using the below job. so what i am looking is how we can automate this job so 
once file reaches the unix directory it copies and delete the source ?

//COPYSTEP EXEC PGM=IKJEFT01
//FILE DD PATH='/export/home/PX1COMT/test.txt'
//PTST DD DISP=SHR,DSN=PTHMICST.TEST.R1.Y(+1)
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
OCOPY INDD(FILE) OUTDD(PTST) TEXT

what i am thinking is scheduling the job at different time of the day . is this 
a good option or there is any other way to do it ?


Regards
Ron T

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


Re: FTP Failing with space issues

2017-04-27 Thread Paul Gilmartin
On Thu, 27 Apr 2017 12:43:17 -0500, Paul Gilmartin wrote:
>
>cat linux.file | sftp user@zOS "cp [-options] /dev/fd/0 
> \"//'data.set.name(member)'\""
>
Brain check.  I mean:
 cat linux.file | ssh user@zOS "cp [-options] /dev/fd/0 
\"//'data.set.name(member)'\""

-- gil

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


Re: FTP Failing with space issues

2017-04-27 Thread Paul Gilmartin
On Thu, 27 Apr 2017 11:51:21 -0500, Ron Thomas wrote:

>Thanks for all the suggestions , Also, i would like to know how we can trigger 
>the copy from the z/OS UNIX directory to a data set as soon the file arrives 
>in the unix directory from the linux VM? 
>
If I had sftp and I could rely on the associated ssh's not being disabled, I'd 
not
bother to "trigger the copy".  I'd do it in one command:

cat linux.file | sftp user@zOS "cp [-options] /dev/fd/0 
\"//'data.set.name(member)'\""

Preallocate the receiving data set with suitable attributes and space.

If you rely on the "cp" command to create that data set, be aware that SPACE
in the "cp" command has a bizarre behavior (I think it's a bug (i.e. WAD)
institutionalized for spurious compatibility).  Specify a secondary extent large
enough to contain the data.

-- gil

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


Re: JZOS Java CLASSPATH

2017-04-27 Thread Kirk Wolf
Yes, this is a feature of the "java" command JVM launcher that is not
present in the JZOS batch launcher and the "java" command launcher.

Both launchers invoke the JVM launcher API and pass in "-Djava.class.path="
as an option using $CLASSPATH, but the "java" command launcher seems to be
enhanced (somewhat recently) to expand an entry with a basename of "*" to
include all of the jar files in that directory:
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html

And yet I fail to see why this is an issue since the JZOS sample JCL shows
how to use the shell language to handle this - with more flexibility.

For example, the "java" command launcher can't do this:

for i in "${MYDIR}"/foo*.jar; do
CLASSPATH="$CLASSPATH":"$i"
done



Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Thu, Apr 27, 2017 at 7:22 AM, Andrew Rowley  wrote:

> On 27/04/2017 09:49 PM, Peter Hunkeler wrote:
>
>> You need to escape the * so that the shell will assign it to the
>> environment variable instead of "resolving" it. Try:
>>
>> I don't think so. I have a small Java program to display the CLASSPATH
> environement variable and what it resolves to:
>
> import java.net.URL;
> import java.net.URLClassLoader;
>
> public class ClassPath {
>public static void main (String args[]) {
> System.out.println(System.getenv("CLASSPATH"));
> ClassLoader cl = ClassLoader.getSystemClassLoader();
> URL[] urls = ((URLClassLoader)cl).getURLs();
> for(URL url: urls){
> System.out.println(url.getFile());
> }
> }
> }
>
> Under JZOS:
>
> JVMJZBL1023N Invoking ClassPath.main()...
> JVMJZBL1024N ClassPath.main() completed.
> JVMJZBL1021N JZOS batch launcher completed, return code=0
> /home/andrewr/java/target:/usr/lpp/java/J8.0/lib:/usr/lpp/
> java/J8.0/lib/ext:/home/andrewr/java/lib/*:
> /home/andrewr/java/target/
> /VERSYSB/usr/lpp/java/J8.0/lib/
> /VERSYSB/usr/lpp/java/J8.0/lib/ext/
> /home/andrewr/java/lib/*
> /home/andrewr/
>
> Under BPXBATCH:
>
> java/target:java/lib/*
> /home/andrewr/java/target/
> /home/andrewr/java/lib/easysmf-je-1.5.2.jar
> /home/andrewr/java/lib/easysmf-je-samples-1.5.2.jar
> /home/andrewr/java/lib/javax.mail.jar
> /home/andrewr/java/lib/slf4j-api-1.7.21.jar
> /home/andrewr/java/lib/slf4j-simple-1.7.21.jar
> /home/andrewr/java/lib/jsoup-1.10.2.jar
>
> In both cases I can see the asterisk in the CLASSPATH variable. Under
> BPXBATCH the jars in that directory are in the classpath as expected. Under
> JZOS the asterisk itself ends up as an entry.
>
>
> --
> 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: CSVAPF Facility Class Profiles

2017-04-27 Thread Jim Brooks
IMHO: no; and it should not matter. Z/OS code is privileged code. No users
are active
until started tasks kick off after NIP completes.

Regards,
Jim

On Thu, Apr 27, 2017 at 12:57 PM, Mark Jacobs - Listserv <
mark.jac...@custserv.com> wrote:

> I asked this on the RACF mailing list yesterday, didn't get a response, so
> I'm trying here next.
>
> I'm 99.9% confident that CSVAPF.dataset profiles aren't used during system
> IPL when datasets in the PROGxx member are added to the active APF list.
> Can someone confirm?
> --
> *One grows tired of jelly babies, Castellan. One grows tired of almost
> everything, Castellan, except power.
> -- The Doctor, in David Agnew's _The Invasion of Time_*
>
>
> --
> 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


CSVAPF Facility Class Profiles

2017-04-27 Thread Mark Jacobs - Listserv
I asked this on the RACF mailing list yesterday, didn't get a response, 
so I'm trying here next.


I'm 99.9% confident that CSVAPF.dataset profiles aren't used during 
system IPL when datasets in the PROGxx member are added to the active 
APF list. Can someone confirm?

--
*One grows tired of jelly babies, Castellan. One grows tired of almost
everything, Castellan, except power.
-- The Doctor, in David Agnew's _The Invasion of Time_*


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


Re: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 Collection, March 2017

2017-04-27 Thread Dyck, Lionel B. (TRA)
Tom - I'm in total agreement with you.  I never liked BookManager on Windows 
and I prefer PDF's as I don't need a network connection, I can place the one's 
I need on my iPad for easy access if my PC is down, and the advanced search to 
cross PDF boundaries is excellent.

It works so please don't break it.

--
Lionel B. Dyck 
Mainframe Systems Programmer - TRA
Enterprise Operations (Station 200) (005OP6.3.10)
Information and Technology, IT Operations and Services

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Tom Brennan
Sent: Thursday, April 27, 2017 11:30 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: [EXTERNAL] Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 
Collection, March 2017

A year or more ago I went looking for the latest PDF documents for an Omegamon 
sub-product (Networks I think?) and couldn't find them.  I did find PDF's for 
the previous version so I sent an email to one of the authors and got a 
response:  There were no PDF's for the latest, only the web-based doc, and if I 
wanted a PDF I could click buttons on the web page to grab all the pages and 
put them into a PDF.  That ended up just like you said, a PDF of relatively 
unrelated snippets :)

Very odd, and I hope that isn't the way of the future.  To me, the online 
snippets are useful only if I get lucky and find what I need via search.  But 
once I'm reading a section, even with the KC next/prev page clicking (like the 
left/right arrows which don't seem to work all the time), I usually give up 
quickly and just go download something I can read - the PDF manual.

Plus, with the PDF (even if it's not completely up-to-date) I have information 
on my PC without needing an IP connection, which could be important in a pinch.

Now don't take me too seriously, since I may be a bit unusual because I never 
liked Bookmanager on my PC either, something people seem to like a lot here.

Dana Mitchell wrote:
> On Thu, 27 Apr 2017 07:31:11 +0200, Peter Hunkeler  wrote:
> 
>>Now, I B M  w i l l   y o u   p l e a s e,   p l e a s e  n o t   a b a n d o 
>>n   t h i s   "Download books in PDF format" support ever!!! KC has its place 
>>but will never be a replacement for PDFs to be read offline!
>>
> 
> 
> My biggest fear is that IBM will continue moving the z/OS documentation in 
> the direction it has taken with the IBM i docs in the past.   The main 
> content in the Knowledge Center consists of small, one or two paragraph 
> tidbits, filled with links to other items, making it almost impossible to 
> read in depth about a topic for a good overview.Then the PDF version is 
> just the same little snippets from the KC, strung together into a pdf 
> document.
> 
> Dana
> 
> --
> 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: FTP Failing with space issues

2017-04-27 Thread Ron Thomas
Thanks for all the suggestions , Also, i would like to know how we can trigger 
the copy from the z/OS UNIX directory to a data set as soon the file arrives in 
the unix directory from the linux VM? 

Regards
Ron T

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


Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 Collection, March 2017

2017-04-27 Thread Tom Brennan
A year or more ago I went looking for the latest PDF documents for an 
Omegamon sub-product (Networks I think?) and couldn't find them.  I did 
find PDF's for the previous version so I sent an email to one of the 
authors and got a response:  There were no PDF's for the latest, only 
the web-based doc, and if I wanted a PDF I could click buttons on the 
web page to grab all the pages and put them into a PDF.  That ended up 
just like you said, a PDF of relatively unrelated snippets :)


Very odd, and I hope that isn't the way of the future.  To me, the 
online snippets are useful only if I get lucky and find what I need via 
search.  But once I'm reading a section, even with the KC next/prev page 
clicking (like the left/right arrows which don't seem to work all the 
time), I usually give up quickly and just go download something I can 
read - the PDF manual.


Plus, with the PDF (even if it's not completely up-to-date) I have 
information on my PC without needing an IP connection, which could be 
important in a pinch.


Now don't take me too seriously, since I may be a bit unusual because I 
never liked Bookmanager on my PC either, something people seem to like a 
lot here.


Dana Mitchell wrote:

On Thu, 27 Apr 2017 07:31:11 +0200, Peter Hunkeler  wrote:


Now, I B M  w i l l   y o u   p l e a s e,   p l e a s e  n o t   a b a n d o n   t h i s 
  "Download books in PDF format" support ever!!! KC has its place but will 
never be a replacement for PDFs to be read offline!




My biggest fear is that IBM will continue moving the z/OS documentation in the 
direction it has taken with the IBM i docs in the past.   The main content in 
the Knowledge Center consists of small, one or two paragraph tidbits, filled 
with links to other items, making it almost impossible to read in depth about a 
topic for a good overview.Then the PDF version is just the same little 
snippets from the KC, strung together into a pdf document.

Dana

--
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: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 Collection, March 2017

2017-04-27 Thread J R
Hear, hear!  

Sent from my iPhone

> On Apr 27, 2017, at 09:50, Dana Mitchell  wrote:
> 
>> On Thu, 27 Apr 2017 07:31:11 +0200, Peter Hunkeler  wrote:
>> 
>> Now, I B M  w i l l   y o u   p l e a s e,   p l e a s e  n o t   a b a n d 
>> o n   t h i s   "Download books in PDF format" support ever!!! KC has its 
>> place but will never be a replacement for PDFs to be read offline!
>> 
> 
> My biggest fear is that IBM will continue moving the z/OS documentation in 
> the direction it has taken with the IBM i docs in the past.   The main 
> content in the Knowledge Center consists of small, one or two paragraph 
> tidbits, filled with links to other items, making it almost impossible to 
> read in depth about a topic for a good overview.Then the PDF version is 
> just the same little snippets from the KC, strung together into a pdf 
> document.
> 
> Dana
> 
> --
> 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: Legacy product

2017-04-27 Thread Timothy Sipples
CICS/VSE is quite ugly (at best) and was never supported on releases of
z/VSE past Version 4.3. (z/VSE 4.2 was the last release to include
CICS/VSE. CICS/VSE was supported on z/VSE 4.3, but with serious caveats.)
Here's some background reading:

http://enterprisesystemsmedia.com/article/pete-clark-on-z-vse-z-vse-announcements

For newer z/VSE releases, including all supported z/VSE releases, you
really ought to make the hop to CICS Transaction Server. To make that hop
you'll need to migrate CSP (and VisualAge Generator) to EGL. Details on the
migration process are available here:

https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/W75c8733d99bb_4d55_9ee8_4dbc8c56ebee/page/Cross
+System+Product+v4.1+Migration+to+EGL

The runtime for EGL, called the Rational COBOL Runtime for z/VSE
(5648-F66), is compatible with z/VSE 4.2 and higher. You can use z/VSE 4.2
as a "bridge" release if necessary since that release supported both
CICS/VSE and CICS TS Version 1, in coexistence, along with the Rational
COBOL Runtime for z/VSE. z/VSE 4.2 is no longer supported at this point in
time, but for migration purposes it could be a useful "bridge" release.

CSP on VSE was/is interpreted. This CSP to EGL migration is well worth
doing for performance reasons, too. Make sure you refer to the interpreted
CSP to generated COBOL migration considerations in the VisualAge Generator
and EGL migration documentation.


Timothy Sipples
IT Architect Executive, Industry Solutions, IBM z Systems, AP/GCG/MEA
E-Mail: sipp...@sg.ibm.com

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


Re: How to pull webpage into batch job

2017-04-27 Thread Bill Ashton
Thanks everyone for some great ideas. I will give these a try and see which
one fits the best into what I am doing.

Have a great day!
Billy

On Thu, Apr 27, 2017 at 10:27 AM, Martin Packer 
wrote:

> Presumably it's related to "Beautiful Soup" - which is nice and liberal
> when it comes to parsing HTML and XML.
>
> Cheers, Martin
>
> Martin Packer,
> zChampion, Principal Systems Investigator,
> Worldwide Cloud & Systems Performance, IBM
>
> +44-7802-245-584
>
> email: martin_pac...@uk.ibm.com
>
> Twitter / Facebook IDs: MartinPacker
>
> Blog:
> https://www.ibm.com/developerworks/mydeveloperworks/blogs/MartinPacker
>
> Podcast Series (With Marna Walle): https://developer.ibm.com/tv/mpt/or
>
> https://itunes.apple.com/gb/podcast/mainframe-performance-
> topics/id1127943573?mt=2
>
>
>
> From:   "Barkow, Eileen" 
> To: IBM-MAIN@LISTSERV.UA.EDU
> Date:   27/04/2017 14:51
> Subject:Re: How to pull webpage into batch job
> Sent by:IBM Mainframe Discussion List 
>
>
>
> Thank you Andrew for the info about Jsoup - I  had never heard of it.
>
> the  jar files to compile and  run can be downloaded from:
>
>
>
> https://jsoup.org/download
>
>
>
> api is at:
>
>
>
> https://jsoup.org/apidocs/
>
>
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Andrew Rowley
> Sent: Thursday, April 27, 2017 3:19 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: How to pull webpage into batch job
>
>
>
> I would suggest Java as well. There are open source libraries that can
>
> do the HTML parsing too e.g. Jsoup.
>
>
>
> I just tested this example on z/OS, it worked (fetch the Wikipedia home
>
> page and list items from the In the news section):
>
>
>
> import java.io.IOException;
>
> import org.jsoup.Jsoup;
>
> import org.jsoup.nodes.Document;
>
> import org.jsoup.nodes.Element;
>
> import org.jsoup.select.Elements;
>
>
>
> public class JsoupTest {
>
>  public static void main(String[] args) throws IOException {
>
>  Document doc = Jsoup.connect("http://en.wikipedia.org/;).get();
>
>  Elements newsHeadlines = doc.select("#mp-itn li");
>
>  for (Element e : newsHeadlines) {
>
>  System.out.println(e.text());
>
>  }
>
>  }
>
> }
>
>
>
> --
>
> Andrew Rowley
>
> Black Hill Software
>
> +61 413 302 386
>
>
>
> --
>
> For IBM-MAIN subscribe / signoff / archive access instructions,
>
> send email to lists...@listserv.ua.edu
> with the message: INFO IBM-MAIN
>
> 
>
> This e-mail, including any attachments, may be confidential, privileged or
> otherwise legally protected. It is intended only for the addressee. If you
> received this e-mail in error or from someone who was not authorized to
> send it to you, do not disseminate, copy or otherwise use this e-mail or
> its attachments. Please notify the sender immediately by reply e-mail and
> delete the e-mail from your system.
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
>
>
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>



-- 
Thank you and best regards,
*Billy Ashton*

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


Re: How to pull webpage into batch job

2017-04-27 Thread Martin Packer
Presumably it's related to "Beautiful Soup" - which is nice and liberal 
when it comes to parsing HTML and XML.

Cheers, Martin

Martin Packer,
zChampion, Principal Systems Investigator,
Worldwide Cloud & Systems Performance, IBM

+44-7802-245-584

email: martin_pac...@uk.ibm.com

Twitter / Facebook IDs: MartinPacker

Blog: 
https://www.ibm.com/developerworks/mydeveloperworks/blogs/MartinPacker

Podcast Series (With Marna Walle): https://developer.ibm.com/tv/mpt/or 
  
https://itunes.apple.com/gb/podcast/mainframe-performance-topics/id1127943573?mt=2



From:   "Barkow, Eileen" 
To: IBM-MAIN@LISTSERV.UA.EDU
Date:   27/04/2017 14:51
Subject:Re: How to pull webpage into batch job
Sent by:IBM Mainframe Discussion List 



Thank you Andrew for the info about Jsoup - I  had never heard of it.

the  jar files to compile and  run can be downloaded from:



https://jsoup.org/download



api is at:



https://jsoup.org/apidocs/



-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On 
Behalf Of Andrew Rowley
Sent: Thursday, April 27, 2017 3:19 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: How to pull webpage into batch job



I would suggest Java as well. There are open source libraries that can

do the HTML parsing too e.g. Jsoup.



I just tested this example on z/OS, it worked (fetch the Wikipedia home

page and list items from the In the news section):



import java.io.IOException;

import org.jsoup.Jsoup;

import org.jsoup.nodes.Document;

import org.jsoup.nodes.Element;

import org.jsoup.select.Elements;



public class JsoupTest {

 public static void main(String[] args) throws IOException {

 Document doc = Jsoup.connect("http://en.wikipedia.org/;).get();

 Elements newsHeadlines = doc.select("#mp-itn li");

 for (Element e : newsHeadlines) {

 System.out.println(e.text());

 }

 }

}



--

Andrew Rowley

Black Hill Software

+61 413 302 386



--

For IBM-MAIN subscribe / signoff / archive access instructions,

send email to lists...@listserv.ua.edu 
with the message: INFO IBM-MAIN



This e-mail, including any attachments, may be confidential, privileged or 
otherwise legally protected. It is intended only for the addressee. If you 
received this e-mail in error or from someone who was not authorized to 
send it to you, do not disseminate, copy or otherwise use this e-mail or 
its attachments. Please notify the sender immediately by reply e-mail and 
delete the e-mail from your system.

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



Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

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


Re: Terminology - Datasets

2017-04-27 Thread Paul Gilmartin
On Thu, 27 Apr 2017 16:57:38 +0300, Maxim Bochagov wrote:

>Gil, looks like we are talking about the same but from different
>towers. My note about DSvsFile touches only DASDies (exactly
>harddisks) devices. Of course, if we mean magnetic tapes, 80-column
>decks, paper tapes, etc. we can say all data as file, dataset or, may
>be, set of data, as you want. The organization there is always
>sequential.
> 
Yah.  When Support told me, without qualification, that "SYSUT1 must
be a data set," and I countered with the passage from "Using Data
Sets", they immediately added qualifications.

>P.S. But, by the way, I've worked with direct-access magnetic tapes at
>80's (!). On soviet BESM-6 machines...
> 
I knew someone who did that with a minicomputer.  Preformat the volume
with short CK-type blocks alternating with long D-type blocks.  On write,
be careful not to overwrite the next block (can't recover with erase gap
and retry.)  On read, ignore residual noise.

And there was:
https://en.wikipedia.org/wiki/DECtape

-- gil

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


Re: Terminology - Datasets

2017-04-27 Thread Maxim Bochagov
Gil, looks like we are talking about the same but from different
towers. My note about DSvsFile touches only DASDies (exactly
harddisks) devices. Of course, if we mean magnetic tapes, 80-column
decks, paper tapes, etc. we can say all data as file, dataset or, may
be, set of data, as you want. The organization there is always
sequential.

=Maxim

P.S. But, by the way, I've worked with direct-access magnetic tapes at
80's (!). On soviet BESM-6 machines...

2017-04-27 16:42 GMT+03:00 Paul Gilmartin
<000433f07816-dmarc-requ...@listserv.ua.edu>:
> On Thu, 27 Apr 2017 15:53:21 +0300, Maxim Bochagov wrote:
>
>>> Typically a "dataset" is MVS - z/OS, while a "file" is UNIX.
>>
>>Please do not forget about the z/VM (CMS minidisk, SFS). So, we will
>>use this sentence as
>>Typically a "dataset" is MVS - z/OS, while a "file" is UNIX or z/VM.
>>
>>Anyway, the dataset is a self-organized data on ECKD device with
>>different Count-Key's,  ...
>>
> No.  From:
> z/OS 2.2.0
> z/OS DFSMS
> z/OS DFSMS Using Data Sets
> All Data Sets
> Working with Data Sets
> Data Storage and Management
> ...
> You can store data on secondary storage devices, such as a direct access 
> storage
> device (DASD) or magnetic tape volume. The term DASD applies to disks or 
> to a
> mass storage medium on which a computer stores data. A volume is a 
> standard
> unit of secondary storage. You can store all types of data sets on DASD 
> but only
> sequential data sets on magnetic tape. Mountable tape volumes can reside 
> in an
> automated tape library. For information about magnetic tape volumes, see 
> z/OS
> DFSMS Using Magnetic Tapesz/OS DFSMS Using Magnetic Tapes. You can also
> direct a sequential data set to or from spool, a UNIX file, a TSO/E 
> terminal, a unit
> record device, virtual I/O (VIO), or a dummy data set.
>
> I trust you don't dispute that publication as a final authority.  Or would you
> care to suggest an alternative?  Or submit an RCF?
>
> -- gil
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



-- 
Regards,
=Maxim Bochagov

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


Re: How to pull webpage into batch job

2017-04-27 Thread Barkow, Eileen
Thank you Andrew for the info about Jsoup - I  had never heard of it.

the  jar files to compile and  run can be downloaded from:



https://jsoup.org/download



api is at:



https://jsoup.org/apidocs/



-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Andrew Rowley
Sent: Thursday, April 27, 2017 3:19 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: How to pull webpage into batch job



I would suggest Java as well. There are open source libraries that can

do the HTML parsing too e.g. Jsoup.



I just tested this example on z/OS, it worked (fetch the Wikipedia home

page and list items from the In the news section):



import java.io.IOException;

import org.jsoup.Jsoup;

import org.jsoup.nodes.Document;

import org.jsoup.nodes.Element;

import org.jsoup.select.Elements;



public class JsoupTest {

 public static void main(String[] args) throws IOException {

 Document doc = Jsoup.connect("http://en.wikipedia.org/;).get();

 Elements newsHeadlines = doc.select("#mp-itn li");

 for (Element e : newsHeadlines) {

 System.out.println(e.text());

 }

 }

}



--

Andrew Rowley

Black Hill Software

+61 413 302 386



--

For IBM-MAIN subscribe / signoff / archive access instructions,

send email to lists...@listserv.ua.edu with 
the message: INFO IBM-MAIN



This e-mail, including any attachments, may be confidential, privileged or 
otherwise legally protected. It is intended only for the addressee. If you 
received this e-mail in error or from someone who was not authorized to send it 
to you, do not disseminate, copy or otherwise use this e-mail or its 
attachments. Please notify the sender immediately by reply e-mail and delete 
the e-mail from your system.

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


Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 Collection, March 2017

2017-04-27 Thread Dana Mitchell
On Thu, 27 Apr 2017 07:31:11 +0200, Peter Hunkeler  wrote:
>
>Now, I B M  w i l l   y o u   p l e a s e,   p l e a s e  n o t   a b a n d o 
>n   t h i s   "Download books in PDF format" support ever!!! KC has its place 
>but will never be a replacement for PDFs to be read offline!
>

My biggest fear is that IBM will continue moving the z/OS documentation in the 
direction it has taken with the IBM i docs in the past.   The main content in 
the Knowledge Center consists of small, one or two paragraph tidbits, filled 
with links to other items, making it almost impossible to read in depth about a 
topic for a good overview.Then the PDF version is just the same little 
snippets from the KC, strung together into a pdf document.

Dana

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


Re: Terminology - Datasets

2017-04-27 Thread Paul Gilmartin
On Thu, 27 Apr 2017 15:53:21 +0300, Maxim Bochagov wrote:

>> Typically a "dataset" is MVS - z/OS, while a "file" is UNIX.
>
>Please do not forget about the z/VM (CMS minidisk, SFS). So, we will
>use this sentence as
>Typically a "dataset" is MVS - z/OS, while a "file" is UNIX or z/VM.
>
>Anyway, the dataset is a self-organized data on ECKD device with
>different Count-Key's,  ...
>
No.  From:
z/OS 2.2.0
z/OS DFSMS
z/OS DFSMS Using Data Sets
All Data Sets
Working with Data Sets 
Data Storage and Management
...
You can store data on secondary storage devices, such as a direct access 
storage
device (DASD) or magnetic tape volume. The term DASD applies to disks or to 
a
mass storage medium on which a computer stores data. A volume is a standard
unit of secondary storage. You can store all types of data sets on DASD but 
only
sequential data sets on magnetic tape. Mountable tape volumes can reside in 
an
automated tape library. For information about magnetic tape volumes, see 
z/OS
DFSMS Using Magnetic Tapesz/OS DFSMS Using Magnetic Tapes. You can also
direct a sequential data set to or from spool, a UNIX file, a TSO/E 
terminal, a unit
record device, virtual I/O (VIO), or a dummy data set. 

I trust you don't dispute that publication as a final authority.  Or would you
care to suggest an alternative?  Or submit an RCF?

-- gil

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


Re: Terminology - Datasets

2017-04-27 Thread John McKown
On Thu, Apr 27, 2017 at 8:30 AM, Paul Gilmartin <
000433f07816-dmarc-requ...@listserv.ua.edu> wrote:

> On Thu, 27 Apr 2017 08:53:34 -0400, Kurt Quackenbush wrote:
> >
> >If only we in SMP/E had that kind of foresight (what, 20+ years ago?) we
> >would not have used "HFS" as an element type.  Of course this goes
> >beyond documentation, so I suspect we'll be stuck with ++HFS for the
> >foreseeable future.
> >
> There are many cases in which an abbreviation is retained for computer
> use after the term is deprecated otherwise.  I think of Sun's retaining
> "yp*" utilities where "yp" originated as an abbreviation of a phrase that
> Sun found was proscribed by trademark rights.
>
> Stick with "HFS" and put a historical note in a glossary.
>

​True. Or just disassociate HFS the idea (Hierarchical File System) from
HFS the implementation of that idea. zFS is still an HFS contains (by my
first definition).



>
> -- gil
>
>
-- 
Advertising is a valuable economic factor because it is the cheapest way of
selling goods, particularly if the goods are worthless. -- Sinclair Lewis


Maranatha! <><
John McKown

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


Re: Terminology - Datasets

2017-04-27 Thread Paul Gilmartin
On Thu, 27 Apr 2017 08:53:34 -0400, Kurt Quackenbush wrote:
>
>If only we in SMP/E had that kind of foresight (what, 20+ years ago?) we
>would not have used "HFS" as an element type.  Of course this goes
>beyond documentation, so I suspect we'll be stuck with ++HFS for the
>foreseeable future.
> 
There are many cases in which an abbreviation is retained for computer
use after the term is deprecated otherwise.  I think of Sun's retaining
"yp*" utilities where "yp" originated as an abbreviation of a phrase that
Sun found was proscribed by trademark rights.

Stick with "HFS" and put a historical note in a glossary.

-- gil

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


Re: Terminology - Datasets

2017-04-27 Thread Maxim Bochagov
> Typically a "dataset" is MVS - z/OS, while a "file" is UNIX.

Please do not forget about the z/VM (CMS minidisk, SFS). So, we will
use this sentence as
Typically a "dataset" is MVS - z/OS, while a "file" is UNIX or z/VM.

Anyway, the dataset is a self-organized data on ECKD device with
different Count-Key's, meanwhile the file can be allocated on a
pre-formatted media. Exactly. And it one reason why z/OS does not work
with 9336 devices -- it can't drive by length of every FBA-block,
which  has fixed 512 bytes length. Yes, it is possible, in theory, but
too many z/OS programs require CKD/ECKD arch. Nobody will patch them.

With regards,
=Maxim

2017-04-26 19:02 GMT+03:00 Gerhard Adam :
> Typically a "dataset" is MVS - z/OS, while a "file" is UNIX.
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On 
> Behalf Of Porowski, Kenneth
> Sent: Wednesday, April 26, 2017 8:39 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Terminology - Datasets
>
> From a z/OS - Mainframe perspective
>
> You have the UNIX filesystem with various  types of files in it.
>
> You have the "classic" Mainframe datasets (sequential, PDS, VSAM, etc.)
>
> To differentiate the "classic" datasets from the UNIX filesystem/files what 
> is the correct/preferred terminology for the "classic" datasets?
>
> MVS dataset
> MVS style dataset
> MVS type dataset
> z/OS dataset
> etc.
> something else?
>
>
>
> This email message and any accompanying materials may contain proprietary, 
> privileged and confidential information of CIT Group Inc. or its subsidiaries 
> or affiliates (collectively, “CIT”), and are intended solely for the 
> recipient(s) named above.  If you are not the intended recipient of this 
> communication, any use, disclosure, printing, copying or distribution, or 
> reliance on the contents, of this communication is strictly prohibited.  CIT 
> disclaims any liability for the review, retransmission, dissemination or 
> other use of, or the taking of any action in reliance upon, this 
> communication by persons other than the intended recipient(s).  If you have 
> received this communication in error, please reply to the sender advising of 
> the error in transmission, and immediately delete and destroy the 
> communication and any accompanying materials.  To the extent permitted by 
> applicable law, CIT and others may inspect, review, monitor, analyze, copy, 
> record and retain any communications sent from or received at this email 
> address.
>
>
>
> --
> 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



-- 
Regards,
=Maxim Bochagov

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


Re: Adventures in JCL: PROCs, symbols and instream data

2017-04-27 Thread Tom Marchant
On Thu, 27 Apr 2017 16:36:12 +1000, Andrew Rowley wrote:

>On 27/04/2017 12:46 AM, Tom Marchant wrote:
>> or SET MESSAGE= and change the references to  to 
>
>SET MESSAGE= seems to be the fix...
>
>This works for all combinations I have thrown at it:

Glad you got it to work, but it should have worked the way you had it.
I hope you will open a Service Request to get it fixed.

-- 
Tom Marchant

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


Re: Terminology - Datasets

2017-04-27 Thread Kurt Quackenbush

On 4/26/2017 7:22 PM, Tony Harminc wrote:


While we're on this... I discourage people here from documenting things
like "specify the name of a zFS file". Who knows how long zFS will be
around? HFS seems to be effectively dead. Maybe in a couple of years a
great new QFS or something will be the UNIX file system du jour on z/OS.
One of our product's docs were full of "HFS" references from ten years ago,
but had nothing to do with defining a new HFS or the like; they just meant
UNIX file, as opposed to MVS dataset...


If only we in SMP/E had that kind of foresight (what, 20+ years ago?) we 
would not have used "HFS" as an element type.  Of course this goes 
beyond documentation, so I suspect we'll be stuck with ++HFS for the 
foreseeable future.


Kurt Quackenbush -- IBM, SMP/E Development

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


Re: JZOS Java CLASSPATH

2017-04-27 Thread Andrew Rowley

On 27/04/2017 09:49 PM, Peter Hunkeler wrote:

You need to escape the * so that the shell will assign it to the environment variable 
instead of "resolving" it. Try:

I don't think so. I have a small Java program to display the CLASSPATH 
environement variable and what it resolves to:


import java.net.URL;
import java.net.URLClassLoader;

public class ClassPath {
   public static void main (String args[]) {
System.out.println(System.getenv("CLASSPATH"));
ClassLoader cl = ClassLoader.getSystemClassLoader();
URL[] urls = ((URLClassLoader)cl).getURLs();
for(URL url: urls){
System.out.println(url.getFile());
}
}
}

Under JZOS:

JVMJZBL1023N Invoking ClassPath.main()...
JVMJZBL1024N ClassPath.main() completed.
JVMJZBL1021N JZOS batch launcher completed, return code=0
/home/andrewr/java/target:/usr/lpp/java/J8.0/lib:/usr/lpp/java/J8.0/lib/ext:/home/andrewr/java/lib/*:
/home/andrewr/java/target/
/VERSYSB/usr/lpp/java/J8.0/lib/
/VERSYSB/usr/lpp/java/J8.0/lib/ext/
/home/andrewr/java/lib/*
/home/andrewr/

Under BPXBATCH:

java/target:java/lib/*
/home/andrewr/java/target/
/home/andrewr/java/lib/easysmf-je-1.5.2.jar
/home/andrewr/java/lib/easysmf-je-samples-1.5.2.jar
/home/andrewr/java/lib/javax.mail.jar
/home/andrewr/java/lib/slf4j-api-1.7.21.jar
/home/andrewr/java/lib/slf4j-simple-1.7.21.jar
/home/andrewr/java/lib/jsoup-1.10.2.jar

In both cases I can see the asterisk in the CLASSPATH variable. Under 
BPXBATCH the jars in that directory are in the classpath as expected. 
Under JZOS the asterisk itself ends up as an entry.


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


Re: JZOS Java CLASSPATH

2017-04-27 Thread Peter Hunkeler

>> No it is not! Oracle has a lab in France that is in charge of the porting 
>> process.
>> IBM merely repackages what Oracle provides from the porting lab into PTFs.
>>
>With more testing today, it looks like the culprit is the JZOS batch
>launcher. It seems that it doesn't support the Java 1.6+ classpath
>wildcards.



The input in the JCL where you specify the CLASSPATH (and other variavles) is 
intrpreted by the shell (sourced). That means the shell will see the * and 
expand it to the list of files separated by blanks.


You need to escape the * so that the shell will assign it to the environment 
variable instead of "resolving" it. Try:


CLASSPATH="$CLASSPATH":"${APP_HOME}"/\*


That is "slash" "backslash" "*"




--Peter Hunkeler



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


Re: Set up SHCDS datasets in RLS enviroment

2017-04-27 Thread Jorge Garcia
This is a good link to start

https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.idas200/plngcf.htm

Regards

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


Re: JZOS Java CLASSPATH

2017-04-27 Thread Andrew Rowley

On 26/04/2017 10:37 PM, Allan Staller wrote:


Maybe the IBM JVM is different to the Oracle one? I tried to find IBM 
documentation, but it is not so explicit.


No it is not! Oracle has a lab in France that is in charge of the porting 
process.
IBM merely repackages what Oracle provides from the porting lab into PTFs.

With more testing today, it looks like the culprit is the JZOS batch 
launcher. It seems that it doesn't support the Java 1.6+ classpath 
wildcards.


Invoking Java direcly from BPXBATCH worked, the wildcard worked 
correctly for the CLASSPATH environment variable as well as the 
-classpath command line option.


I was curious to see whether you could get around it by passing the 
-classpath as a JVM option, but it seems not. I suspect JZOS takes the 
job of setting the classpath away from the JVM entirely and it is a bit 
limited in what is supports. I wonder whether this is a deliberate 
restriction, or something that wasn't updated for 1.6+ behaviour?


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


Re: Terminology - Datasets

2017-04-27 Thread Richards, Robert B.
> Now, do we continue the "dataset" vs "data set" debate to "filesystem" vs 
> "file system"?​ Personally, I vote for the smushedupword.

I second that. But in fact, I have adapted to whatever is being used in the 
current shop. It has changed over the decades back and forth. Dataset is 
popular at the moment.

Think of it as a dialect. I am not offended by Boston, NYC, Texas, etc. 
accents. Heck, I am from the NE and my wife is from Alabama. My brain still 
pauses every time I hear a "Y'all" or an "All Y'all". I just smile and move on 
in the conversation. :-)

Bob

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


Re: How to pull webpage into batch job

2017-04-27 Thread Andrew Rowley
I would suggest Java as well. There are open source libraries that can 
do the HTML parsing too e.g. Jsoup.


I just tested this example on z/OS, it worked (fetch the Wikipedia home 
page and list items from the In the news section):


import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class JsoupTest {
public static void main(String[] args) throws IOException {
Document doc = Jsoup.connect("http://en.wikipedia.org/;).get();
Elements newsHeadlines = doc.select("#mp-itn li");
for (Element e : newsHeadlines) {
System.out.println(e.text());
}
}
}

--
Andrew Rowley
Black Hill Software
+61 413 302 386

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


Re: AW: Re: Issue with SK4T-4949-13 - IBM Online Library: z/OS V2R2 Collection, March 2017

2017-04-27 Thread Dan Little
I totally agree we need to be able to do bulk downloads of PDF bundles.  

I also completely agree that some of the simple tools like tso bookmanager were 
far more reliable and in many cases much easier to use than searching and 
getting hundreds of hits unrelated to what I am looking for. 

> On Apr 27, 2017, at 07:31, Peter Hunkeler  wrote:
> 
> 
> 
> 
> 
>> Unfortunately, this is now working-as-designed as announced in an RFA and at 
>> Share.   
> 
> 
> 
> Unfortunately, this is nowhere near what users need. Decision makers are not 
> users, so what can you expect :-(( 
> 
> 
> I like to have the PDFs, and I like to have them organized in subdirectories 
> named after the component, and I like to have the PDFs be named after the 
> title of the book. I most cases I know what book to open, and this 
> organization makes it very easy for me. I also have this structure on my iPad.
> 
> 
> What I've done is to start with this web page 
> https://www-03.ibm.com/systems/z/os/zos/library/bkserv/index.html 
> 
> 
> and open the corresponding "Download books in PDF  format", save the page 
> source and run it through som REXX scripts. The result is a Windows CMD file 
> that creates subdirectories, downloads the PDFs, and renames them. All you 
> need is REXX (Regine REXX, e.g.) and wget. (I have not yet adapted this to 
> curl).
> 
> 
> The little pain with this is the fact the the html source slightly changes 
> every now and them. But apart from that, the process works nicely for me. 
> 
> 
> I'm happy to share the scripts, if anyone is interested. Drop me a note 
> off-list. 
> 
> 
> Now, I B M  w i l l   y o u   p l e a s e,   p l e a s e  n o t   a b a n d o 
> n   t h i s   "Download books in PDF format" support ever!!! KC has its place 
> but will never be a replacement for PDFs to be read offline!
> 
> 
> --
> Peter Hunkeler
> 
> 
> 
> --
> 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: Can XLC printf() take "%D(*,*)"?

2017-04-27 Thread David Crayford

On 27/04/2017 1:28 AM, David W Noon wrote:

I am currently using an interpretive loop to format the decimal data. I am
going to look into using __EDMK() instead. (And yes, the volume, potentially
millions of iterations per day, justifies the effort.)

Do you know the size and scaling factor of the packed decimal values at
compile time? If so, the __EDMK() call could be faster than printf(), as
those format interpreters [printf(), sprintf(), etc.] often run like
treacle in winter.


Indeed. And C++ iostreams are even worse! I once significantly improved 
the performance of a C++ function by replacing ostringstream with

a simple routine that converted STCK units to std::string.

inline std::string stck2str( uint64_t stck) const
{
std::string result;
result.reserve(16);
stck >>= 12; // convert to microseconds
char decwork[16];// decimal output work area
__cvdg( stck, decwork ); // convert to decimal
char MASK[] = 
"\x40\x20\x20\x20\x20\x20\x20\x20\x21\x20\x4B\x20\x20\x20\x20\x20\x20";

char time[sizeof MASK - 1];
memcpy( time, MASK, sizeof time );
__ed( (unsigned char *)time, (unsigned char *)decwork + 8, sizeof 
time - 1 );

int trimlen;
for ( trimlen = 0; trimlen < sizeof time && time[trimlen] == ' '; 
trimlen++ );

result.append( time + trimlen, sizeof time - trimlen );
return result;
}

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


Re: Adventures in JCL: PROCs, symbols and instream data

2017-04-27 Thread Andrew Rowley

On 27/04/2017 12:46 AM, Tom Marchant wrote:
or SET MESSAGE= and change the references to  to  


SET MESSAGE= seems to be the fix...

This works for all combinations I have thrown at it:

//TEST PROC MESSAGE='''Hello World'''
//SYMBOLS  EXPORT SYMLIST=(MESSAGE)
// SET MESSAGE=
//S1   EXEC PGM=IEBGENER
//SYSINDD DUMMY
//SYSPRINT DD DUMMY
//SYSUT1   DD *,SYMBOLS=JCLONLY
 
//SYSUT2   DD SYSOUT=*
// PEND
//*
//S1   EXEC TEST
//S2   EXEC TEST,MESSAGE='''Hello Again'''
//S3   EXEC TEST
//S4   EXEC TEST,MESSAGE='''Hello Again'''

--
Andrew Rowley
Black Hill Software
+61 413 302 386

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


Re: Adventures in JCL: PROCs, symbols and instream data

2017-04-27 Thread Andrew Rowley

On 27/04/2017 12:46 AM, Tom Marchant wrote:

This sounds similar to a problem that I had a while back. Do you have
OA47958 applied?


It is applied, however it is very interesting, including the very 
similar JCL for testing.


Unfortunately, if I take their JCL and add some variation:

//PROC1 PROC PPP=
//  EXPORT SYMLIST=QQQ
//  SET QQQ=
//PSTEP1EXEC PGM=IEBGENER
//SYSPRINT  DD   DUMMY
//SYSUT1DD *,SYMBOLS=JCLONLY
SYMBOL QQQ=
/*
//SYSUT2DD   SYSOUT=*
//SYSIN DD   DUMMY
//  PEND
//JSTEP1EXEC PROC1,PPP=VALUE1
//JSTEP2EXEC PROC1,PPP=VALUE2
//JSTEP3EXEC PROC1,PPP=VALUE3
//JSTEP4EXEC PROC1
//JSTEP5EXEC PROC1,PPP=VALUE5

I get the output:

SYMBOL QQQ=VALUE1
SYMBOL QQQ=VALUE2
SYMBOL QQQ=
SYMBOL QQQ=
SYMBOL QQQ=VALUE5

That still looks broken. Where did VALUE3 go?

--
Andrew Rowley
Black Hill Software
+61 413 302 386

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


Re: Can XLC printf() take "%D(*,*)"?

2017-04-27 Thread Bernd Oppolzer

Different for C.

I wrote many ASSEMBLER functions callable from C
and looked at (oh so many) dumps (mine and others)
which were generated by errors in C programs. The "by value" doubles,
for example, are part of the R1 parameter list. Not sure for large 
structures ...


What you describe for extern "OS" and maybe C++
is the same mechanism that PL/1 calls a "dummy argument".
But this is technically not the same as true call by value.
It is what I call "call by reference with a premature copy of the
argument". Sure it logically has the same effect.

Kind regards

Bernd


Am 27.04.2017 um 01:27 schrieb Charles Mills:

As someone who has written a fair number of C++-callable z/OS assembler 
routines I can assure you that even though it is call-by-value, the callee's 
entry R1 points to a list of addresses. Here is working code in assembler that 
picks up an integer (R10 is the entry R1 and PARM2 EQU 4).

  L R2,PARM2(,R10)   Address of Length in R2
  L R0,0(,R2)Length in R0

Here's the declaration of the function in C++

extern "OS" { void FREEMAIN(void *address, const unsigned int size); }

(Which, BTW, I guess answers my out-loud musing. Even though it is conceptually 
call-by-value, the address of (a copy of, presumably) the packed field is 
passed to printf().

In the assembler routine, call by value and call by reference (& notation) look 
the same. The only visible difference I know of is whether the list off of R1 
points to the variable or a copy of the variable.

Charles



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