Re: ChatGPT "knows" HLASM

2023-06-02 Thread Gary Weinhold
Our manager, who is not an HLASM programmer, asked ChatGPT to create an assembler program to move data from one location to another. He then had to ask it to do it for z/OS. The response was: For z/OS assembly language, you can use the BALR (Branch and Link Register) instruction to move data

Re: ChatGPT "knows" HLASM

2023-06-02 Thread Wendell Lovewell
fwiw, I've been using ChatGPT and especially Monica to convert some DOS .BAT programs to Python. I paste in the BAT file and ask it to convert it to Python. It does a remarkable job generating "real" Python code--not just rewriting the DOS statements one by one. However, I'd guess it's been

Re: Assembler theology question

2023-06-02 Thread David Cole
No. I left the comma out intentionally. At 6/1/2023 02:06 PM, you wrote: ? ITYM L R10,PSATOLD-PSA(,0) -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Assembler List [ASSEMBLER-LIST@LISTSERV.UGA.EDU] on

Re: Assembler theology question

2023-06-02 Thread Seymour J Metz
I realize that it takes up room on a page/screen, but there is an option to display active USINGs, and that makes it easier to catch certain types of errors. Defensive programming is your friend, in any language. I'm not convinced that it's any easier to shoot yourself in the foot with HLASM

Re: Assembler theology question

2023-06-02 Thread Steve Smith
On Thu, Jun 1, 2023 at 10:25 PM Phil Smith III wrote: > See, I knew this would get into theology! > > > > I guess I wasn't clear enough: I only meant this for when you're doing a > single instruction, something that will never expand-this > kind of "flyby" of a control block on the way to

Re: Assembler theology question

2023-06-02 Thread Peter Relson
Dave Cole wrote Also, I probably wouldn't bother with a USING. My favorite instruction for this is: L R10,PSATOLD-PSA(0) Note, providing the "0" for the index register prevents that rather annoying ASMA306W message. ASMA306W is for overlapping usings. So I don't think it