STRING DC X'03020100'
TABLE DC X'FF01AABB00'
OUTDCB DCB DSORG=PS,MACRF=(PM),DDNAME=OUTDISK, *
SAVE DS 18F
This was my assmebler code for converting the STRING Format into TABLE format. I compiled the program successfully. But when i tried to run it I ended it in a s0c1 abend.
Pls guide me to sort it out..
You should remember that execution is sequential...
the open statement generates some machine code instructions...
after that other machine code instructions are expected,
You put Your constants in the wrong place and the CPU tries to execute them
as machine instructions
Joined: 14 Jan 2008 Posts: 2504 Location: Atlanta, Georgia, USA
Beside Enrico's suggestion about reviewing the MVC, I think the Assembler believes that STRING is an instruction. After the OPEN Macro expansion, the logic falls right into this label. When the Assembler tries to interpret a X'03' as an OP CODE, it can't, because it doesn't exist. So, you wind up with an invalid OP CODE (IE: SOC1).
You should move your DS and DC definitions out of the execution path and place them after the the 18-WORD register-savearea, but still, the MVC syntax is way off.
Download the latest/greatest Reference Summary and save as a favorite -