Re: Location of forms code in z/OS manuals

2022-10-27 Thread Seymour J Metz
That's possible. There has been a title key in every PDF from IBM that I looked at, but that's a very small sample size. I may have to resort to parsing the title page. Thanks. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM

Re: Location of forms code in z/OS manuals

2022-10-27 Thread Seymour J Metz
Is that a windows command? I'm pretty sure that DOS doesn't do escaping. I would be building my index on Linux or OS/2. Thanks. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on

Re: Location of forms code in z/OS manuals

2022-10-27 Thread Seymour J Metz
That's true for current z/OS but not true across the board. At least the PDF from IBM has title; the ones from bitsavers doesn't even have that :-( -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread Michael Stein
On Thu, Oct 27, 2022 at 12:14:19PM -0500, Charles Mills wrote: > XLC defines a macro __R1 in stdlib.h. It is the contents of GPR 1 on > entry to the program. Looking at stdlib, it is #defined as __gtab(12) > -- or there may be further #defines farther back -- that is as far as I > have researched.

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread Paul Gilmartin
On Thu, 27 Oct 2022 15:43:59 -0500, Charles Mills wrote: > >Yeah, I know how to do a front-end to the C++ but I would rather not add that >complexity. > (Guessing) How about ADDRESS LINKMVS to a minimal function? Just: LRR15,R0 BRR15 Yes, it adds another thing to

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread David Crayford
You can obtain the environment block by calling IRXINIT("FINDENVB ") On 28/10/22 04:43, Charles Mills wrote: But how does REXX invoke a program? Ret = MYFUNC(parm1, parm2) glue code puts the rexx parameters Yeah, I know how to do a front-end to the C++ but I would rather not add that

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread Charles Mills
> But how does REXX invoke a program? Ret = MYFUNC(parm1, parm2) > glue code puts the rexx parameters Yeah, I know how to do a front-end to the C++ but I would rather not add that complexity. If no one comes up with a better answer I will just go with passing 0 for the Environment Block

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread Colin Paice
I wrote a Rexx calling a C function a while ago. I've just dumped the code into https://github.com/colinpaicemq/RexxToC/tree/main/code CCQUERY compiles and runs it QREXX is the rexx ... v = CPQUERY("QR","P.","1+bySlG9Ug/c2TbK6o++",100,2); main c program in query glue code in glue glue

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread Tony Harminc
On Thu, 27 Oct 2022 at 14:30, Charles Mills wrote: > It's being called from Rexx running under zOSMF so would TCBFSA apply? > No, I suppose not. I was thinking this was an EXEC PGM= thing, but on reflection obviously not. But how does REXX invoke a program? (This is a REXX Call statement?)

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread Charles Mills
That gtab "documentation" is a joke! How do I find __gfunc.h? I don't see it in the header libraries. No @@GFUNC. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Thursday, October 27, 2022 11:10 AM To:

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread Charles Mills
It's being called from Rexx running under zOSMF so would TCBFSA apply? Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Tony Harminc Sent: Thursday, October 27, 2022 11:09 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: XLC

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread Paul Gilmartin
On Thu, 27 Oct 2022 12:14:19 -0500, Charles Mills wrote: >... >2. Is there any equivalent way to get the contents of GPR 0 (short of writing >an assembler front-end, which is a small PITA of its own)? Why? So a routine >called from Rexx could get the Environment Block address. Or does

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread Tony Harminc
On Thu, 27 Oct 2022 at 13:55, Charles Mills wrote: > Thanks. Not sure if that would work, because I suspect that GPR 0 when my > C++ code starts actually executing is no longer the GPR 0 on entry to > CEESTART. > I'd guess you're right. But surely CEESTART will have saved it in TCBFSA, and

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread Charles Mills
Thanks. Not sure if that would work, because I suspect that GPR 0 when my C++ code starts actually executing is no longer the GPR 0 on entry to CEESTART. Charles -- For IBM-MAIN subscribe / signoff / archive access

Sr. Software Engineers (TPF) - 100% Remote

2022-10-27 Thread Tommy Phillips
Is this the right audience? I'm looking for people who have worked on z/TPF operating systems internals, specifically the zTPF Control Program. Salary: Up to $150k/yr base salary with great benefits Company: Travel Industry Location: 100% Remote (Must be authorized to work in the US) Title: Sr.

Re: XLC C/C++, __R1 and Register 0

2022-10-27 Thread Colin Paice
I wrote Spice up a C program by using __asm__ to include inline assembler. But this whole area seems not very well documented You could save register 0 in a variable with the assembler code

XLC C/C++, __R1 and Register 0

2022-10-27 Thread Charles Mills
XLC defines a macro __R1 in stdlib.h. It is the contents of GPR 1 on entry to the program. Looking at stdlib, it is #defined as __gtab(12) -- or there may be further #defines farther back -- that is as far as I have researched. I am guessing __gtab() is a magically-defined internal function. I

Hillgang

2022-10-27 Thread Neale Ferguson
The next meeting of Hillgang – the DC, Maryland, and Virginia z/VM and Linux User Group – will be held (in person!) on December 6, 2022. Details will follow but here’s the agenda so far: 1. Virginia Commonwealth University – Dr John Leonard, Professor of Computer Science, College of

Re: Location of forms code in z/OS manuals

2022-10-27 Thread Paul Gilmartin
On Thu, 27 Oct 2022 15:05:52 +, Sri h Kolusu wrote: >... DOS command ... >wmic datafile "C:\\Users\\Johndoe\\Manuals\\pops.pdf" list full > >Note the escaping of the backslashes \ in the path > I'm puzzled. If they're not escaped aren't they taken as directory level separators, and isn't

Re: Location of forms code in z/OS manuals

2022-10-27 Thread Paul Schuster
IBM provides an index when you download the entire pubs library zip file. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Re: Location of forms code in z/OS manuals

2022-10-27 Thread Sri h Kolusu
>> Title is only one of the two data that I want as keys. If title is the key you want then you can run the following DOS command to get the details wmic datafile "C:\\Users\\Johndoe\\Manuals\\pops.pdf" list full Note the escaping of the backslashes \ in the path You can run the above

Re: Location of forms code in z/OS manuals

2022-10-27 Thread Paul Gorlinsky
Seymour, I have been looking thru my collection of PDFs from IBM and have noticed that several different versions of PDF generators have been used. It also appears that the persons generating the PDFs from older BOOKMASTER/GML formats used many different programs. I am wondering if the tagging

Re: Location of forms code in z/OS manuals

2022-10-27 Thread Walt Farrell
On Wed, 26 Oct 2022 17:06:06 +, Seymour J Metz wrote: >PDFBox is certainly the way to go for the title, but IBM doesn't appear to be >putting the forms code anywhere accessible. The form code is certainly in the text, e.g., at the bottom of the cover page. So you should be able to extract