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
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
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
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
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
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