GETTING ERROR NO ACTIVE USING FOR OPERAND
Posted: Tue Nov 22, 2016 6:47 pm
I am beginner in assembly coding.. i have asked to write a code for comparing three numbers. i wrote below code but it is giving me error 'no active using for num1,num2,num3 etc.. plz help me out. i am beginner.
topic edited to use the code tags instead of the useless bold
COPY TXCOPY
COMPARE TXSTART COMPARE,TYPE=MAIN,BASES=(1)
CP NUM1,NUM2
BH HIGH
MVC GREAT,NUM2
CP GREAT,NUM3
BH HIGHEST
MVC GREAT,NUM3
B HIGHEST
HIGH EQU *
MVC GREAT,NUM1
B HIGHEST
HIGHEST EQU *
TXERM 'DISPLAY GREAT' GREAT
NUM1 DC P'20'
NUM2 DC P'80'
NUM3 DC P'10'
GREAT DS PL2
COMPARE TXSTART COMPARE,TYPE=MAIN,BASES=(1)
CP NUM1,NUM2
BH HIGH
MVC GREAT,NUM2
CP GREAT,NUM3
BH HIGHEST
MVC GREAT,NUM3
B HIGHEST
HIGH EQU *
MVC GREAT,NUM1
B HIGHEST
HIGHEST EQU *
TXERM 'DISPLAY GREAT' GREAT
NUM1 DC P'20'
NUM2 DC P'80'
NUM3 DC P'10'
GREAT DS PL2
topic edited to use the code tags instead of the useless bold