It's your self-defining literal =CL.

Make it regular literal, just DS CL and you will be fine.

BAL has never allowed equates for self-defining literals.




"Hughes, Jim" <jim.hug...@doit.nh.gov> 
Sent by: The IBM z/VM Operating System <IBMVM@LISTSERV.UARK.EDU>
10/26/2010 02:22 PM
Please respond to
The IBM z/VM Operating System <IBMVM@LISTSERV.UARK.EDU>


To
IBMVM@LISTSERV.UARK.EDU
cc

Subject
HL ASM question






This works:
 
ABC   MVC   JOBNAM,=CL(8)’ ‘
 
This does not work:
JOBNAMLEN  EQU 8
ABC  MVC  JOBNAM,=CL(JOBNAMLEN)’ ‘
 
 
Field JOBNAM is defined as:
JOBNAM   DS   CL8
 
The HLASM manual says this regarding the length modifer for the DC 
statement:
 
Length Modifier
The length modifier indicates the number if bytes of storage into which 
the constant is to be assembled.
It is written as Ln, where n is either a decimal self-defining term or an 
absolute expression enclosed by parentheses.
 
What am I doing wrong?  I’d like the program to adjust itself if someone 
changes the length of JOBNAM.
 
I’ve also tried:
 
ABC   MVC JOBNAM,=CL(L’JOBNAM)’ ‘       and it fails too.
 
 
 
____________________
Jim Hughes
603-271-5586
"It is fun to do the impossible."
 

Reply via email to