
Compare and Branch With CLC, CLI and BRC in HLASM
Compare character fields with CLC and CLI, read the condition code, and branch with BC, BRC and the extended mnemonics like BE, JNE and JL in HLASM programs.
IBM Z and z/OS: COBOL, JCL, REXX, HLASM and PL/I, CICS, Db2 and IMS, datasets and batch jobs, and modernising code that still runs the world's payments.

Compare character fields with CLC and CLI, read the condition code, and branch with BC, BRC and the extended mnemonics like BE, JNE and JL in HLASM programs.

Learn the HLASM instructions that move data between registers and storage, L, ST, LR, LA, STM and LM, with a traced example showing every register value.

Write assembler programs that call and return the standard z/OS way, with registers on entry, an 18-word save area chain and a return code in register 15.

Understand why HLASM needs a base register, how USING and DROP tell the assembler which register addresses which storage, and how to fix ASMA307E errors.

Learn the z/Architecture registers, the program status word and the main instruction formats, with a hand-decoded example of how an HLASM line becomes bytes.

Write a minimal High Level Assembler program that prints a console message, then assemble it with ASMA90, link-edit it with the binder and run it as a job step.

Route job output to the JES2 spool with SYSOUT=* and a class, set MSGCLASS for the job log, control message volume with MSGLEVEL and read the SDSF datasets.

Create a new z/OS dataset in JCL with UNIT, SPACE, DCB and DSORG: primary and secondary space, RECFM and LRECL, and BLKSIZE=0 for the system block size.

Code the JCL DISP parameter with its status, normal and abnormal dispositions for NEW, OLD, SHR and MOD datasets, with the defaults and the job log messages.

The fixed rules of JCL syntax on z/OS: the // identifier, name, operation and operand fields, column 72, continuing a statement, and comment lines with //*.

Write a small JCL job in ISPF, submit it with the SUB command, find it in SDSF and read its return code and output, on z/OS 3.1 with JES2.

Learn what the JOB, EXEC and DD statements do in z/OS JCL, with a working copy job, a field-by-field walk through, the job log and the common mistakes.
We send one email when a new post is published. No spam.