Re: [EXTERNAL] Re: Calling C functions from HLASM

2023-06-06 Thread Swarbrick, Frank
DLLs on z/OS can be stored in PDSEs as well. But that does not help you for z/VSE... -Original Message- From: IBM Mainframe Assembler List On Behalf Of Dave Clark Sent: Tuesday, June 6, 2023 1:05 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: [EXTERNAL] Re: Calling C functions from

Re: [EXTERNAL] Re: Calling C functions from HLASM

2023-06-06 Thread Swarbrick, Frank
I don't believe VSE supports DLLs, so this may be all for naught. Unless VSE has a non-DLL LDAP library. -Original Message- From: IBM Mainframe Assembler List On Behalf Of Dave Clark Sent: Tuesday, June 6, 2023 12:43 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: [EXTERNAL] Re:

Re: [EXTERNAL] Re: Calling C functions from HLASM

2023-06-06 Thread Swarbrick, Frank
I got it working. Didn't properly allocate automatic (stack) storage for the parameters in the earlier example. prntit2 ceeentry main=YES,auto=AUTOSZ ceepcall printf,(fmtstr,3,str),,mf=(E,PARMS3) ceeterm ppa ceeppa , fmtstr dcc'Test %d: %s.',x'0' str dc

Re: Calling C functions from HLASM

2023-06-06 Thread Swarbrick, Frank
It looks like CEEPCALL is used to call DLL functions. However I've not gotten it to work yet. This is what I've tried for printf(): prntit2 ceeentry main=YES ceepcall printf,(fmtstr,3,str),,mf=(E,PARMS3) ceeterm ppa ceeppa , fmtstr dcc'Test %d: %s.',x'0' str dc

Re: [EXTERNAL] Re: Automatic Variable Insertion

2023-04-18 Thread Swarbrick, Frank
Here's a simple call to printf from LE-enabled assembler. ceedsa , ceecaa , prntit ceeentry main=YES call PRINTF,(fmtstr,3) ceeterm ppa ceeppa , fmtstr dcc'Test %d!',x'0' end prntit Output is: Test 3! -Original Message- From:

Re: Automatic Variable Insertion

2023-04-18 Thread Swarbrick, Frank
I'm actually working with LE messages right now. Not CEEMSG specifically, but a combination of: 1) Custom LE conditions and messages 2) CEECMI to add an "insert" to a message represented by a condition token 3) CEEMGET to retrieve the formatted message from a condition token Best place to start

Re: [EXTERNAL] Re: alternative to USAGE statement?

2023-03-30 Thread Swarbrick, Frank
at pitfall. Charles -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Swarbrick, Frank Sent: Thursday, March 30, 2023 12:37 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: [EXTERNAL] Re: alternative to USAGE statement? Well, t

Re: [EXTERNAL] Re: alternative to USAGE statement?

2023-03-30 Thread Swarbrick, Frank
vary. The latter I would call USING/DROP; I don't have a name for the former. Perhaps "computed offset"? Charles -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Swarbrick, Frank Sent: Wednesday, March 29, 20

alternative to USAGE statement?

2023-03-29 Thread Swarbrick, Frank
20 year amateur assembler programmer here. Sometimes I see macro expansions (and just open code) with code like the following. L 12,X'14'(,12) AH12,AFLENG-DFHAFCB(,12) L 12,AFPFXLEN+AFTKTCB-AFTSTART(,12) LLGT 12,UKTCB_ACTIVE_TASK-DFHUKTCB(,12)

Re: [EXTERNAL] IBM Z Open Editor now offers HLASM support

2020-07-09 Thread Swarbrick, Frank
I also have some questions. 1) What host components are required for Zowe. It it just configuring z/OSMF as described here: https://docs.zowe.org/stable/user-guide/systemrequirements-zosmf.html? Is there additional z/OS software that needs to be installed, or is it "simply" a matter of

Re: [EXTERNAL] Re: The Condition Code as a return value from a called function and LEAVE in Rexx

2020-06-09 Thread Swarbrick, Frank
=jK1beERCkCvANh8cumSQsPDIpEWjtP0Fb8UADR6ko-E= From: IBM Mainframe Assembler List [ASSEMBLER-LIST@LISTSERV.UGA.EDU] on behalf of Swarbrick, Frank [frank.swarbr...@efirstbank.com] Sent: Tuesday, June 9, 2020 4:36 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re

Re: [EXTERNAL] Re: The Condition Code as a return value from a called function and LEAVE in Rexx

2020-06-09 Thread Swarbrick, Frank
What Rexx implementations support the latter syntax? -Original Message- From: IBM Mainframe Assembler List On Behalf Of Seymour J Metz Sent: Tuesday, June 9, 2020 1:54 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: [EXTERNAL] Re: The Condition Code as a return value from a called

Re: [EXTERNAL] Re: EQU * considered harmful

2018-08-03 Thread Swarbrick, Frank
"Why isn't the length attribute of a DSECT its actual length?" I don't have a good answer, but I do have a related RFE you can vote for. For all the good it will do, as it's never received a response from IBM as far as I can tell...

Re: [EXTERNAL] Re: Macro processor

2017-12-21 Thread Swarbrick, Frank
Doesn't RACF or other access control protect this data equally? -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Jon Perryman Sent: Thursday, December 21, 2017 11:40 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: [EXTERNAL] Re:

Re: [EXTERNAL] Re: Access registers

2017-12-04 Thread Swarbrick, Frank
I think someone else said it was choosing EBCDIC over ASCII. Personally I think that one's worth, because apparently it will never be "fixed". -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Charles Mills Sent: Monday, December

Re: interesting, to me, new z14 instruction: BIC

2017-09-15 Thread Swarbrick, Frank
Until it runs out of ink. -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of John McKown Sent: Friday, September 15, 2017 2:57 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: interesting, to me, new z14 instruction: BIC On

Re: Save areas (not XPLINK).

2017-06-09 Thread Swarbrick, Frank
You say "COBOL, and other LE languages, use only standard linkage". Is this true for 64-bit C/C++ and PL/I? Isn't the pragma linkage in C and the extern "linkage specifier" used to specify alternative linkages? The 2002 and 2014 COBOL standards support an "ENTRY-CONVENTION" clause in the

Re: Performance of Decimal Floating Point Instruction

2017-05-11 Thread Swarbrick, Frank
Oh I know. We've already stated the direction to not use this method going forward. But with 30+ years of legacy code in place that uses it... -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Peter Hunkeler Sent: Thursday, May

Re: Performance of Decimal Floating Point Instruction

2017-05-10 Thread Swarbrick, Frank
We have this "technique" as well. Interestingly, at least the last time I checked, it still works (causes the S0C7) if the packed decimal field is signed (PIC S9), but not if its unsigned (PIC 9). What is the fix? When was it released? -Original Message- From: IBM Mainframe Assembler

Re: Structured Programming Macros

2016-05-17 Thread Swarbrick, Frank
Correction to my "simple" code: TM0(R6),UEPPSB1 JOPSBFUNC -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Swarbrick, Frank Sent: Tuesday, May 17, 2016 11:44 AM To: ASSEMBLER-LIST@LISTSE

Re: Structured Programming Macros

2016-05-17 Thread Swarbrick, Frank
The LOAD ON CONDITION instruction is quite interesting, and the 'obvious' answer in this case. Thanks for pointing it out! Funny thing is, with the use of this instruction almost all cases where an SP macro would be used in the code I am working with has almost entirely disappeared. :-) I am

Re: Structured Programming Macros

2016-05-17 Thread Swarbrick, Frank
This is exactly true. That being said, I don't know how structured programming macros can be used for 100% of your code if you want to also use the minimum number of instructions possible. These two things appear to be in conflict. For example, I did this simple code: IF

Re: Using macro to set assembler option

2016-02-15 Thread Swarbrick, Frank
er you can sense that RENT was specified for the assembly. _RENT is the boolean system set symbol that indicates this. Perhaps you can turn the problem on its head? After all, your macro must be issued before the first section is started to get ahead of the ESDs, right? On 02/15/2016 06:16 PM, S

Using macro to set assembler option

2016-02-15 Thread Swarbrick, Frank
I don't see how this might be possible, but no harm in asking. I am writing a simple macro which can be used to insert an appropriate SETOPT line to set the link/bind REUS attribute: MACRO , REUS AIF ('' EQ 'RENT').OPTRENT AIF ('' EQ 'NONE').SETREUS

Re: load logical halfword immediate

2016-01-21 Thread Swarbrick, Frank
] On Behalf Of Tony Harminc Sent: Thursday, January 21, 2016 11:57 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: load logical halfword immediate On 20 January 2016 at 14:21, Swarbrick, Frank <frank.swarbr...@efirstbank.com> wrote: > I don't want IILF because it uses a ful

load logical halfword immediate

2016-01-20 Thread Swarbrick, Frank
Is there any such instruction? This would be an instruction that would: - Be a register-and-immediate instruction, with a halfword immediate value as the source. - Load the halfword in bytes 48-63. - Load zeroes in bytes 32-47. - Leave bytes 1-31

Re: WAVV (was RE: Use of LQ results in ASMA080E?!)

2016-01-05 Thread Swarbrick, Frank
of LQ results in ASMA080E?!) WAVV disbanded almost two years ago due to declining attendance. VSE presentation content is now available via the VM Workshop. The next workshop will be at the end of June at Rutgers University. See http://vmworkshop.org. On Tue, Jan 5, 2016 at 9:03 PM, Swarbrick

WAVV (was RE: Use of LQ results in ASMA080E?!)

2016-01-05 Thread Swarbrick, Frank
What happened to WAVV? -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Rich Smrcina Sent: Tuesday, January 05, 2016 12:59 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Use of LQ results in ASMA080E?! Such a requirement

Re: Review My Program

2015-12-11 Thread Swarbrick, Frank
Hi David, I used LE for a couple of reasons: - I like the use of AUTO/STACK storage, as it is automatically allocated, is reentrant, and works both in batch and under CICS. - I’m now “used” to it. How much overhead is it really? Since I’m calling it from COBOL then the LE

review my program?

2015-12-11 Thread Swarbrick, Frank
Hi Steve, Not sure how I managed to use DS 0C there. The thought to my indexing was to have code that would essentially say: - Point argument 1 to MODNAME - Point argument 2 to MODSIZE - Point R5 to argument 3 So in "pseudo-assembler", where [n] represents a subscript I might have something