Re: Complex immediate fields

2024-04-15 Thread Paul Gilmartin
On 4/15/24 20:31:33, Seymour J Metz wrote: Expect a performance hit if you modify instructions. I like to use LOCTR to keep data physically remote but visually near the instructions that use them. . LOCTR is a boon for reading source. Perhaps less so for reading dumps. Are any symbolic

Re: Complex immediate fields

2024-04-15 Thread Paul Gilmartin
On 4/15/24 10:09:06, Charles Mills wrote: ... And I would never, ever embed data in the instruction stream. . I.e. no parameters following the CALL-type instruction? Don't some library macros (still) do this, bypassing with a relative (ugh!) branch instruction? Are instruction pages

Re: Complex immediate fields

2024-03-29 Thread Paul Gilmartin
On 3/29/24 10:56:49, Seymour J Metz wrote: Ba... I consider LFI R15,X'4000' to be ugly, and would like to be able to either use an immediate field combing CL1 and XL3 pieces or to refer to an EQU defining that combination. Is there any way to do that in HLASM? Is LOCTR any

Re: Why am I getting ASMA145E (was Re: Macro parameters: parsing a relocatable address)

2024-02-27 Thread Paul Gilmartin
On 2/27/24 05:21:41, Seymour J Metz wrote: Because 24(R3) is not an expression. The second operand of the USING must be either a register number or a relocatable expression. . Rather than USING MY0004,24(R3) would USING MY0004-24,R3 have the desired effect? -- gil

Re: Hiding COPY text

2024-02-23 Thread Paul Gilmartin
On 2/23/24 13:12:16, Seymour J Metz wrote: Configuation Management using Endevor. . Does Endevor let you define your own build processes as, for example, "make" does (but SMP/E doesn't.) Are you concerned with suppressing the listing of the IEABRC macro definition, or of its expansion? --

Re: Hiding COPY text

2024-02-23 Thread Paul Gilmartin
On 2/23/24 10:06:02, Martin Trübner wrote: There are exits in HLASM that can be used to suppress printing according to you own rules. . This becomes burdensome for anyone intending to publish assembler source code. -- gil

Re: Hiding COPY text

2024-02-23 Thread Paul Gilmartin
On 2/23/24 07:34:33, Seymour J Metz wrote: I don't want to use PRINT OFF for the COPY of ASMMSP or IEABRC, but I don't want to clutter up the listing. Is there an analog of PRINT NOGEN for code in a COPY? Make a private copy of ASMMSP or IEABRC. Add PUSH--NOGEN--POP. I once wrote or

Re: How to create a pdf file from Mainframe

2024-01-09 Thread Paul Gilmartin
On 1/9/24 21:36:50, Roger Bolan wrote: Infoprint Server is a component of z/OS. It has a companion product IBM Print Transforms from AFP. Is it separately priced? The afpxpdf transform can transform either line data or AFP into PDF. Infoprint Server can take that PDF and send it to

Re: How to create a pdf file from Mainframe

2024-01-08 Thread Paul Gilmartin
On 1/8/24 10:51:14, sudershan ravi wrote: Could someone help me on creating a pdf file from the mainframe job. What are the options we have? Start here; look for TXT2PDF. -- gil

Re: Setting as CSECT or on using

2023-12-20 Thread Paul Gilmartin
On 12/20/23 12:58:41, Seymour J Metz wrote: Why not MACRO ... LOCTR MEND . Doesn't LOCTR imply ? I don't believe it creates a duplicate-named location counter in a different section. Is there an RFE for PUSH CSECT, PUSH DSECT or PUSH LOCTR? . I think Tony's

Re: Setting as CSECT or on using

2023-12-20 Thread Paul Gilmartin
On 12/20/23 09:21:39, Joseph Reichman wrote: I understand if I want to make it work I’ll have to break up the macro into parts finish the fest after I have a CSECT statement . It works as intended as it is. I believe the design objective of is to allow the coder of a data area DSECT to

Re: Setting as CSECT or on using

2023-12-19 Thread Paul Gilmartin
On 12/19/23 20:12:56, Joseph Reichman wrote: The definition of the macro was before a CSECT was established the macro module from file192 established a CSECT When I established a CSECT before the macro definition the picked it up . Does the following do what you expect? Otherwise, what?

Re: Setting as CSECT or on using

2023-12-19 Thread Paul Gilmartin
it's quite conventional before a CSECT instruction. should be evaluated at the point of call, not definition. On Dec 19, 2023, at 10:07 PM, Paul Gilmartin wrote: ... This is confusing. Please post a complete small program showing the problem you see. PRINT ON,GEN If the macros are not standa

Re: Setting as CSECT or on using

2023-12-19 Thread Paul Gilmartin
On 12/19/23 17:53:53, Joe Reichman wrote: The macro was invoked in the context of unnamed csect However the Macro established CSECT would having a macro Whitin a macros solve this I guess the first macro would establish the CSECT allowing me to use in the second macro . This is confusing.

Re: Linkage Editor Include Order

2023-12-04 Thread Paul Gilmartin
On 12/4/23 13:05:05, Dave Clark wrote:> I found an answer that works for z/VSE. After cataloging the main object for my load module, I use the following linkage editor statements to specify the order I want for my included objects and the linkage editor honors this specified order.

Re: Reseting RMODE

2023-12-04 Thread Paul Gilmartin
(Don't be greedy; don't set personal "Reply-to:") On 12/4/23 07:28:51, João Reginato wrote: As I've said before, I wasn't clear enough here. My intent is to change the RMODE during the compilation phase only. I have all CSECTS with RMODE ANY so, one of them, need to be RMODE 24, and I cannot

Re: BAKR/PR and Linkage Convention

2023-11-30 Thread Paul Gilmartin
On 11/30/23 09:38:19, Bill Hitefield wrote: I have used the following (in a macro) to do that: $ALIGN EQU ((*-)-(((*-)/)*)) DC ($ALIGN)X'00'SET ALIGNMENT . How well does such a thing work under a LOCTR? If such a thing is used in a LOCTR, or even two different LOCTRs,

Re: BAKR/PR and Linkage Convenction

2023-11-21 Thread Paul Gilmartin
On 11/21/23 14:32:27, Tom Marchant wrote: Modern processors use a 256-byte cache line, with separate caches for instructions and data. A cache line maps to 256 bytes of storage on a 256-byte boundary. There are performance penalties when the same line of storage needs to be in both the

Re: BAKR/PR and Linkage Convenction

2023-11-21 Thread Paul Gilmartin
On 11/21/23 13:04:25, Jon Perryman wrote: 1. 99% of programs require a workarea. It's simple to add an additional 72/144 bytes for a save area which places the workarea and savearea together. I personally prefer getmain a large area so that no getmain is required for subsequent calls.

Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Paul Gilmartin
On 11/15/23 06:39:33, Peter Relson wrote: This was a very lengthy thread in which the OP multiple times ignored those who correctly provided what was needed. I don't know why the OP would not simply take the advice and proceed. . I suspect the OP supplied a distilled test case which did not

Re: Needed: INSERT

2023-11-14 Thread Paul Gilmartin
On 11/14/23 15:34:01, Willy Jensen wrote: Not as far as I could find, I could have used that myself a couple of times. . It seems like a good Idea. I wonder why no one has ever requested it. Oprindelig besked Fra: Paul Gilmartin Dato: 14.11.2023 23.31 (GMT+01:00)> On

Needed: INSERT (was: ASMA057E ...)

2023-11-14 Thread Paul Gilmartin
On 11/14/23 15:22:19, Willy Jensen wrote: The way I read the error message is that the entire statement 'SR15,15' is read as the op-code. . Is there something that works like AINSERT, but processes its operand immediately rather than buffering it until return to open code? That would seem

Re: SV: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Paul Gilmartin
On 11/14/23 14:44:48, Willy Jensen wrote: I have sometimes used global variables with a recursive call to simulate a macro subroutine to validate and set variables. . I doubt that's the simplification the OP is seeking. -Oprindelig meddelelse- Fra: IBM Mainframe Assembler List João

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Paul Gilmartin
On 11/14/23 14:16:22, João Reginato wrote: without the SETC it works but I need it to simplify the logic of a bigger macro. . Please post an example of "a bigger macro" with an explanation of how the SEtC simplifies it. If it doesn't work, simpler is *not* better. -- gil

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Paul Gilmartin
., 14 de nov. de 2023 às 17:46, Paul Gilmartin escreve:>>>> . I believe the SETC is unnecessary. How a bout just: MACRO ZERO SR, MEND START LZERO 15 END -- gil

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Paul Gilmartin
On 11/14/23 13:28:09, João Reginato wrote: hi I can't see the error on this simple code. Can anyone help me pls? TIA João Reginato (+55 61) 9911-55500 Active Usings: None Loc Object CodeAddr1 Addr2 Stmt Source Statement HLASM R6.0 2023/11/14 16.58

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-13 Thread Paul Gilmartin
On 11/13/23 15:59:45, Bob Raicer wrote: There have been a few posts in this thread that more or less stated that only complete physical blocks could be read into storage from a device. This is not strictly true.> We don't know the OP's objective: performance, security, or other. -- gil

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-13 Thread Paul Gilmartin
have a short block. I stand corrected. I intended to inquire about RECFM=FBS. -Original Message- From: IBM Mainframe Assembler List On Behalf Of Paul Gilmartin Sent: Monday, November 13, 2023 12:50 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Is True Skip-Sequential

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-13 Thread Paul Gilmartin
On 11/13/23 08:23:44, Schmitt, Michael wrote: As long no one ever uses DISP=MOD ...or checkpoints. Checkpoints can cause short blocks to be written. (My knowledge is with IMS/DB GSAM checkpoints.) How does checkpoint interact with RECFM=VBS? -- gil

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-12 Thread Paul Gilmartin
On 11/12/23 16:18:04, Jon Perryman wrote: Specifically asked was z/OS RECFM=FB. As long no one ever uses DISP=MOD, then the calculation is simple because number of records per block and blocks per track is consistent. RECFM=FBS prevents that. You simply divide record number by records

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-12 Thread Paul Gilmartin
On 11/11/23 19:36:36, Seymour J Metz wrote: It is possible to do skip sequential reading of physical records. Itt is not possible to skip logical records. There are two cases where it is possible; RECFM=FBS and you know the physical record number; you know the TTR of the physical record.

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Paul Gilmartin
On Sun, 12 Nov 2023 02:24:50 +, Seymour J Metz wrote: >It doesn't have to be FBS if you know the location of the block. > Doesn't ISPF BROWSE do something of that sort, creating an index for rapid positioning to a requested record? But it must (except for FBS?) read once to build the index.

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Paul Gilmartin
On 11/11/23 06:59:07, David S. wrote: To help resolve a question posted to a LinkedIn group I manage: www.linkedin.com/feed/update/urn:li:groupPost:910927-7128598004344786944 ... I'd like to find out if there's any way to achieve *true* Skip-Sequential processing with a Fixed Block Sequential

Re: Is True Skip-Sequential Processing Possible with RECFM=FB,DSORG=PS?

2023-11-11 Thread Paul Gilmartin
On Sat, 11 Nov 2023 08:59:07 -0500, David S. wrote: ... . Sequential processing *must* begin at specified starting point and there can be *no* reading of any records prior to that point. That sounds absurd. So if a block contains 10 records, you want to be able to read the last 5 with

Re: Based vs. Relative

2023-11-09 Thread Paul Gilmartin
On 11/9/23 10:54:39, Steve Thompson wrote: To get to relative operations, there is an IBM supplied macro that one can include right at the top of your source and it can be turned on/off as needed. As I recall, it does OPSYN to get rid of based branch (jump) and uses the relative version.

Re: Variable-Length Parameter List Attributes

2023-10-18 Thread Paul Gilmartin
On 10/18/23 13:03:27, Dave Clark wrote: All I know is that is what my Notes client generates for replies with an internet-style history. Apparently, Notes sees your post as coming from the list rather than from you. Sorry.;-) 'Way back, RFC 822 specified tie From: and Sender:

Re: Variable-Length Parameter List Attributes

2023-10-18 Thread Paul Gilmartin
On 10/18/23 11:49:12, Dave Clark wrote: ... The z/VSE CALL macro does not have those last two keywords. But, I can just code ORG *-2 after the CALL to accomplish the same thing. Thanks. ORG or B into code generated by a macro whose source you don't control is genuinely dangerous.

Re: Variable-Length Parameter List Attributes

2023-10-18 Thread Paul Gilmartin
On 10/18/23 09:53:35, Dave Clark wrote: SHVPARMB DS 5F However, the program I am calling will actually accept 4, 5, or 6 parameters in this list. So, I believe that T' will return F and L' will return 4, but is there any attribute that will return the 5 in the above definition? I ask, because

Re: unsubscribe

2023-09-26 Thread Paul Gilmartin
On 9/26/23 15:09:11, Juan Escamilla wrote: unsubscribe "" -- gil

Re: Placeholder Instruction

2023-09-26 Thread Paul Gilmartin
On 9/26/23 08:21:32, Martin Ward wrote: On 26/09/2023 14:54, Paul Gilmartin wrote: It wold be futile to attempt to write a C program with semantics of a FORTRAN program.  It's futile to write an Assembler program which would work if it were COBOL. Polyglot would beg to differ: https

Re: Placeholder Instruction

2023-09-26 Thread Paul Gilmartin
On 9/26/23 07:26:18, Dave Clark wrote: "IBM Mainframe Assembler List" wrote on 09/25/2023 05:55:23 PM: Just put another WHEN right after it. SELECT WHEN 1 something WHEN 2 WHEN 3 something ENDSEL , No

Re: Placeholder Instruction

2023-09-25 Thread Paul Gilmartin
On 9/25/23 14:32:57, Dave Clark wrote: In COBOL, an EVALUATE-WHEN-END-EVALUATE construct can use the CONTINUE verb as a placeholder where you would normally need an imperative statement. Well, in ASSEMBLER I have a SELECT-WHEN-ENDSL construct in which I now need the same kind of

Re: Self-documenting Bit Settings

2023-08-11 Thread Paul Gilmartin
On 8/11/23 16:42:06, Charles Mills wrote: Sorry. Did not mean to be cryptic or obscure. By the question mark I meant "why not?" Why not AL4? Yes, I never found it intuitive that A should be word-aligned and AL4 not, but that is what it is. *But* AL0 *is* word-aligned. Go figger. -- gil

Re: Modifying the CC in the PSW

2023-08-11 Thread Paul Gilmartin
On 8/11/23 06:08:44, David Eisenberg wrote: ... I know that I can always code the comparands in the correct order by loading them into the high-halves of R0 and R1, then use CLHHR. Or, of course, I can generate a CLC with a literal. But I figured I’d ask: if I use CLHHSI, then (if the

Re: How to enter tiny Binary Floating-Point value

2023-08-02 Thread Paul Gilmartin
On 8/2/23 09:52:47, Jonathan Scott wrote: Shmuel (Seymour J.) Metz writes: That still leave the question of HLASM syntax for DC. I would hope that it's been extended to handle tiny floating point. This has not been done so far, as the architects said it should not be needed, as it was not for

Re: looking for limbo languages - how low can you go?

2023-07-18 Thread Paul Gilmartin
On 7/18/23 13:30:35, Rick Troth wrote: I'd like to think that I'm somewhat broad minded: I hate Java, but not the language, rather the requirement for the JVM and the ecosystem which has grown up around it. Java can be done very wrong. I've sought a portable (i.e. to more than one desktop

Re: looking for limbo languages - how low can you go?

2023-07-18 Thread Paul Gilmartin
On 7/18/23 15:10:47, Phil Smith III wrote: Rick wrote about C and its power. As he noted, I *was* referring to the macro language/preprocessor when I said "pathetic". Because it is. It's old enough that it really should be more mature. Pascal has no macros. If the language is (FSVO)

Re: HLASM religious texts, was Variable symbol without leading

2023-06-29 Thread Paul Gilmartin
On 6/29/23 13:31:11, Seymour J Metz wrote: ... I don't understand why division by zero is valuable and not an error. IIRC, it provides a (too) clever way of generating a boolean at assembly (not conditional) time: (X-Y)/(X-Y) is one iff X<>Y. -- gil

Re: HLASM religious texts, was Variable symbol without leading

2023-06-29 Thread Paul Gilmartin
On 6/29/23 11:17:06, Seymour J Metz wrote: It looks like it supports expressions but not USING. Does it support division by 0? The mavens hereabouts have told me that is a valuable feature of HLASM when I'd rather see it treated as an error. I can think of exactly one good reason for not

Re: Variable symbol without leading

2023-06-28 Thread Paul Gilmartin
On 6/28/23 12:23:03, Seymour J Metz wrote: Then it's a good thing that "exclusively" came from you, not from me. For your information, I *have* encountered people who write HLASM for a living and have no idea how the instructions are actually encoded. ... and they ask how they can eliminate

Re: Variable symbol without leading

2023-06-28 Thread Paul Gilmartin
On 6/28/23 08:17:20, Dave Clark wrote: "IBM Mainframe Assembler List" wrote on 06/28/2023 10:09:27 AM: Just looked at the doc for LCLC says for variable symbol says can be with or with out leading & However when I tried to do a SETC against it I got a assembly error I believe that

Re: Conditional assembly variable scope

2023-06-27 Thread Paul Gilmartin
mesh well with labelled USING. FAP did this with the HE[A]D pseudo-op. From: Paul Gilmartin Is there a way to declare a symbol in a macro so that it is visible in the declaring macro and in macros it calls but not in open code nor in macros calling

Re: Conditional assembly variable scope

2023-06-27 Thread Paul Gilmartin
On 6/27/23 11:04:43, Jonathan Scott wrote: Would any know the difference in scope Of a local used in open code and a global used In a macro the both seem to have a scope of the entire assembly A local variable is unique to the context where it is defined, so a local variable defined in open

Re: Shower thought

2023-06-13 Thread Paul Gilmartin
On 6/13/23 09:42:56, Seymour J Metz wrote: In both cases they are treated numerically as a whole, For logical instructions the operands are treated as unsigned numbers. The distinvtion goes back to the vacuum tube ("valve" for you Brits) machine, well before S/360. Citation needed.

Re: Shower thought

2023-06-07 Thread Paul Gilmartin
On 6/7/23 15:13:28, Charles Mills wrote: @Gil said it better than I. Thanks for the comple^Himent. I decided to search the Assembler Services Ref., for abuses of "hexadecimal". I got only as far as ABEND when I found the astonishing: ,REASON=reason code Specifies the reason code

Re: Shower thought

2023-06-07 Thread Paul Gilmartin
On 6/7/23 15:13:29, Seymour J Metz wrote: Given that the word length is a multiple of 4 bits, it is natural to group the data into groups of 4 bits, just as on 36 bit machines it was natural to group bits into groups of 3 and use octal notation. Add in the hexadecimal floating point and hex

Re: Shower thought

2023-06-07 Thread Paul Gilmartin
On 6/7/23 15:15:40, Jon Perryman wrote: ... To us, signed integer is ones complement> with bit 0 being the sign Who "us"? -- gil

Re: Shower thought

2023-06-07 Thread Paul Gilmartin
On 6/7/23 13:59:39, Charles Mills wrote: Generally speaking, for most instructions and architectures, comparisons end at inequality, to unequal operands may compare faster than equal ones. An exception may be in DB operations where equi-joins can be faster than non-equi-joins. OK. Joins are

Re: Shower thought

2023-06-07 Thread Paul Gilmartin
On 6/7/23 14:08:16, Charles Mills wrote: Dave, no offense was intended. Yes, I totally understood your meaning. The mis-use of the term hexadecimal to mean vaguely "some value, possibly not a printable character" is a personal bugaboo of mine. The IBM doc does it: talking about specifying a

Re: Notepad++ language formatting

2023-06-05 Thread Paul Gilmartin
On 6/5/23 11:10:03, Charles Mills wrote: ... XML ... Ah! The language name I was looking for. Thanks. Now, GIYF, the jargon seems to be "plugin" in place of "macro". And, for self-reference, there appears to be a plugin, presumably coded in XML, to format XML code. -- Thanks again,

Re: Notepad++ language formatting

2023-06-05 Thread Paul Gilmartin
On 6/5/23 09:30:05, Charles Mills wrote: There are potentially three meanings for "macro" in this thread. 1. Part of what the formatting does is highlight z/OS macro names in the code. So if you code GETMAIN it knows that is a keyword, not some random token. There is a list of z/OS macro

Re: Notepad++ language formatting

2023-06-04 Thread Paul Gilmartin
On 6/3/23 21:13:53, Charles Mills wrote: Geez, people. This was not a religious statement about platforms. This was a personal tool that I decided to share. I was not advocating for THE or Kedit, merely observing that they might be more familiar to HLASM programmers. Given Windows, my

Re: Notepad++ language formatting

2023-06-03 Thread Paul Gilmartin
(Forgive unintended previous reply.) (Why do most plies here request personal, not list, eplies?) On 6/3/23 19:55:15, Ze'ev Atlas wrote: T Most everybody is on Windows. The operannt word is "Most". ... there are at least two Linux clonesZA Cite, please. Do these accept Charles's and Abe's

Re: Notepad++ language formatting

2023-06-03 Thread Paul Gilmartin
On 6/3/23 14:18:23, Charles Mills wrote: Thank you Abe. Frankly, Notepad++'s format recognition in general is about 80-90%. I was just working on a Rexx program and noticed it was off. Usually selecting the language type again -- just clicking Language Rexx or HLASM again -- reminds

Re: Notepad++ language formatting

2023-06-03 Thread Paul Gilmartin
On 6/3/23 12:29:30, Abe Kornelis wrote: based on the work by Charles Mills I created an updated/extended version including all current instructions according PoP, more macros, more register names, and more file types. It is not perfect, but it does a reasonable job. So I submitted it to the

Re: ChatGPT "knows" HLASM

2023-06-01 Thread Paul Gilmartin
On 6/1/23 17:27:21, John McKown wrote: Oh, I guess I should mention that what got me interested was s YouTube where the person used ChatGPT to create Python code. The entire point was ... What are you quoting? I can't find it in the Archives. I've found the responses to be very

Re: ChatGPT "knows" HLASM

2023-06-01 Thread Paul Gilmartin
On 6/1/23 11:39:34, John McKown wrote: I asked ChatGPT for an example HLASM program. Here's what I got: BALRR9,0 Set the base register USING *,R9 Establish a base register LR R3,R9Load the base register into R3

Re: ChatGPT "knows" HLASM

2023-06-01 Thread Paul Gilmartin
On 6/1/23 11:39:34, John McKown wrote: I asked ChatGPT for an example HLASM program. Here's what I got: BALRR9,0 Set the base register USING *,R9 Establish a base register LR R3,R9Load the base register into R3

Re: Automatic Variable Insertion

2023-04-18 Thread Paul Gilmartin
On 4/18/23 12:59:43, Charles Mills wrote: Correction: the form named sprintf(). Darned spell check. May I recommend "snprintf()" instead, for integrity reasons? -- gil

SYSADATA CMS or z/OS?

2023-03-16 Thread Paul Gilmartin
Sent as rCF: In: I read: FILEDEF SYSADATA DISK fn SYSADATA m1 (RECFM VB LRECL 32756 BLOCK 32760 The URL includes "zos/2.2.0", but the page is rife with CMS jargon. Can this be fixed? --

Re: Entry Point in load module

2023-03-15 Thread Paul Gilmartin
On 3/15/23 10:31:36, Phil Smith III wrote: What's the best list for questions about BPXWUNIX? About zSeries hardware? Well, for zSeries hardware, you'll want a time machine, since that hasn't been produced in 18 years. Fix my vocabulary. What should I call contemporary IBM mainframe

Re: Entry Point in load module

2023-03-15 Thread Paul Gilmartin
On 3/15/23 09:37:42, Dave Clark wrote: "IBM Mainframe Assembler List" wrote on 03/15/2023 10:51:47 AM: That happens to me if I leave the END statement blank with no entry point specified. If there are two or more END statements, which dominates? I should have asked more clearly, If two or

Re: Entry Point in load module

2023-03-15 Thread Paul Gilmartin
On 3/15/23 06:53:11, Peter Relson wrote: This is not a question for assembler-list as it has nothing to do with the assembler itself. The binder is a z/OS function and questions about it would be better suited for ibm-main. A factor in the decision might be which Bookshelf describes the

Re: Entry Point in load module

2023-03-15 Thread Paul Gilmartin
On 3/14/23 22:14:24, Phil Smith III wrote: Dave Clark wrote: That happens to me if I leave the END statement blank with no entry point specified. Over 35 years ago, I was taught to put the name on the END statement, but I now realize I didn't know why! Thanks. If there are two or more END

Re: HLASM code page support enhancements

2023-02-13 Thread Paul Gilmartin
On 2/13/23 11:35:23, Jonathan Scott wrote: Ze'ev Atlas wrote: The real question is why, but really why, IBM had to introduce this EBCDIC horror, where symbols like [,], ^ and some less signifacant ones moved around dry leaves in the fall wind. That's a bit off-topic, but the answer is

Re: HLASM code page support enhancements

2023-02-13 Thread Paul Gilmartin
On 2/13/23 13:10:42, Phil Smith III wrote: Just be glad that the basic character set is fixed in EBCDIC code pages. Imagine if A-Z moved around! That might be good. It would motivate the designers to fix the damned problem. Or adopt the solution in widespread use. -- gil

Re: HLASM code page support enhancements

2023-02-13 Thread Paul Gilmartin
On Feb 13, 2023, at 12:55:45, Seymour J Metz wrote: C was not the first language to use []. Algol-60?  IBM was enthusiastic about Algol early in the s/360 era. -- gil

Re: HLASM code page support enhancements

2023-02-13 Thread Paul Gilmartin
On 2/13/23 11:29:23, Seymour J Metz wrote: It's awful in the mainframe world, but it's also awful in the PC world. Multiple code pages matching ASCII or ISCII in 0-127 and chaotic everywhere else. Maybe z/OS should move to UTF-8 as the standard code page. +1 for UTF-8. I have two desktop

Re: HLASM code page support enhancements

2023-02-13 Thread Paul Gilmartin
On 2/13/23 02:51:52, Jonathan Scott wrote: Any reference to an ASCII or Unicode term where the value contains characters outside the invariant EBCDIC character set will clearly have a value which depends on the EBCDIC code page in which the source was written. This means that it is not

Re: HLASM code page support enhancements

2023-02-10 Thread Paul Gilmartin
On 2/9/23 08:06:41, Jonathan Scott wrote: gil writes: Thanks. Will this, by clarification, relax restrictions on the use of ASCII self-defining terms, such as: MVI L,CA'x' ASCII and Unicode self-defining terms have been supported in assembly expressions since PI89365 in 2017.

Re: ASMA003E Undeclared variable symbol SYSECT

2022-12-30 Thread Paul Gilmartin
On 12/30/22 08:04:37, João Reginato wrote: Why ‘’ works fine inside a MACRO call but not in the program body out of a macro?? WTO ' start’ ** ASMA003E Undeclared variable symbol; default=0, null, or type=U - OPENC/SYSECT Isn't it defined as the SECT in effect when the macro was

Re: lower case inside parm field

2022-12-29 Thread Paul Gilmartin
On 12/29/22 12:08:26, Ze'ev Atlas wrote: It was my mistakeThe parm should have been '''-d PCRE2.TESTLIB(TESTINE1) DD:TESTOUT''' and it worked Please be more explicit. Was that the PARM on the EXEC statement, as for example: //STEP EXEC PGM=ASMA90, // PARM='''-d

Re: lower case inside parm field

2022-12-29 Thread Paul Gilmartin
(Why do you request a private reply rather than reply to list?) On 12/29/22 11:28:05, Ian Worthington wrote: Can you show us what you've got? Yes, please. I have routinely passed a mixed-case SYSPARM from JCL to ASMA90, perhaps even IEV90. I have had problems with the cc (now c89 or c99)

Re: CLHHSI TYPECHECK(MAGNITUDE) Annoyance

2022-12-07 Thread Paul Gilmartin
On 12/7/22 10:01:33, Steve Smith wrote: "The second operand is two bytes in length and is treated as a 16-bit signed binary integer." So, I think it's just a bug. I haven't had occasion to use -1 with CHSI, etc., but I have with MVHI, etc. and no such warning is emitted. It appears that

Re: Off topic: mainframe group?

2022-11-22 Thread Paul Gilmartin
On 11/22/22 03:59:44, Ian Worthington wrote: It seems that bit.listserv.ibm-main may have died, at at least have next to zero traffic, which amounts to the same thing. Anyone here know of a suitable replacement for z architectural questions?

Re: ADD LOGICAL WITH SIGNED IMMEDIATE HIGH N

2022-11-15 Thread Paul Gilmartin
On 11/15/22 14:59:10, Gary Weinhold wrote: Also instructions that don't set the condition code preserve the existing condition code for following instructions. You're repeating yourself. "don't set" and "preserve" are synonymous. -- gil

Re: ADD LOGICAL WITH SIGNED IMMEDIATE HIGH N

2022-11-15 Thread Paul Gilmartin
On 11/15/22 08:32:05, Ian Worthington wrote: I noticed today that ALSIH R1,I2 has a partner-in-crime ALSIHN R1,I2 which differs only, as far as I can tell, in that the later does not set the condition code. I'm curious what the need was for a distinct instruction to do the second.  Anyone

Re: Return value for C2B('&&')

2022-11-03 Thread Paul Gilmartin
On 11/3/22 16:43:54, John Ganci wrote: I think I've answered my question. Looking in HLASM Language Reference Chapter 9, there is a section "Evaluation of character expressions" following the description of the X2D built-in function. Item 2 in the Notes of that section states "A double

Re: Missing ASMA034E message

2022-09-05 Thread Paul Gilmartin
On 9/5/22 08:37:16, John Gateley wrote: I forgot all leading spaces would be removed. denotes leading spaces ??? Your earlier message appeared intact in my Inbox. On the web LISTSERV it contained numerous but iOS, Fiefox, and Safari rendered those as acceptable spaces. Where did you

Re: RES: YA MGCRE RCF?

2022-07-14 Thread Paul Gilmartin
On 7/14/22 13:11:38, João Reginato wrote: Yes, all the lines coded after the OPSYN will treat the "LA" instruction as a "LAY" until you suspend it with a new "LA OPSYN ," Mustn't one be careful with this sort of OPSYN because some library macros branch around generated code using absolute

Re: YA MGCRE RCF?

2022-07-13 Thread Paul Gilmartin
Re: YA MGCRE RCF? Content-Transfer-Encoding: quoted-printable Message-ID: <7246580616716144.wa.paulgboulderaim@listserv.uga.edu> Sender: IBM Mainframe Assembler List From: Paul Gilmartin Parts/Attachments: text/plain (16 lines) On Wed, 13 Jul 2022 1

Re: YA MGCRE RCF?

2022-07-13 Thread Paul Gilmartin
On Wed, 13 Jul 2022 12:27:06 +, Peter Relson wrote: >Definitely the lack of an equate for R12 should be corrected (such as by >adding an equate and a BASR R12,0). I'll get that taken care of. > Thanks. But I may have misled myself by seeing CSECT; USING *; ...; END, and assuming a user

Re: YA MGCRE RCF?

2022-07-12 Thread Paul Gilmartin
Well, that got terribly garbled. Trying a different way. On Tue, 12 Jul 2022 10:30:13 -0600, Paul Gilmartin wrote: >Do I have cause for an RCF here? > >In  z/OS 2.5 MVS Programming: Authorized Assembler Services Reference, Volume 3 (LLA-SDU) >IBM SA23-1374-50 > >I see: MG

YA MGCRE RCF?

2022-07-12 Thread Paul Gilmartin
Do I have cause for an RCF here? In  z/OS 2.5 MVS Programming: Authorized Assembler Services Reference, Volume 3 (LLA-SDU) IBM SA23-1374-50 I see: MGCRE - Execute form |DOMTST CSECT R2 EQU 2 USING *,R12 LA R2,CMD R2 POINTS TO THE COMMAND AREA MGCRE

Re: Type attribute changes in a new HLASM version

2022-07-07 Thread Paul Gilmartin
On 7/7/22 15:42:28, Jonathan Scott wrote: The general rule is that HLASM programs which assemble without error should always continue to generate compatible binary code, ... Ouch! A consequence of this "general rule" is that various HLASM bugs, even some which result in behavior contrary to

Re: CLI vs. TRT

2022-07-07 Thread Paul Gilmartin
On Thu, 7 Jul 2022 08:19:42 -0700, Charles Mills wrote: > >> The CLI chain might be optimized by CLI first for the median value > >In fact, if there were enough I values, might one not effectively do a binary >search? There is an amusing coding problem. > Why didn't I think of that!? And

CLI vs. TRT

2022-07-07 Thread Paul Gilmartin
Given several target characters, at what value of "several" is the break-even between TRT and a chain of CLI;  BC? (It's probably model-dependent.) The CLI chain might be optimized by CLI first for the median value and using the outcome to bypass half the remaining tests. -- gil

Re: When did logical instructions appear?

2022-06-17 Thread Paul Gilmartin
On 6/17/22 11:00:30, Phil Smith III wrote: I suspect that it goes back farther. There was no concept of halfword at the time; it was all 36-bit words. Oooh, I like the idea of halfwords in that context-19 bits! Just think, we'd all know the numbers 524,288 and 262,144 like we know 32K and

Re: When did logical instructions appear?

2022-06-17 Thread Paul Gilmartin
On 6/17/22 02:54:31, Robin Vowels wrote: On 2022-06-17 18:04, Seymour J Metz wrote: FSVO serial. The early electronic machines that I'm aware of were parallel. FWIW, there were papers claiming that 1s' complement was simpler. Not in a serial machine. Was serial technology the motivation

Re: When did logical instructions appear?

2022-06-16 Thread Paul Gilmartin
On Jun 16, 2022, at 10:43:36, Robin Vowels wrote: Computers have had instructions for signed and unsigned binary since at least 1951.  When negative values are expressed using twos complement notation, ordinary addition will give the same result whether the operation is signed or unsigned. It

  1   2   3   4   5   6   7   8   9   10   >