|
|
| Author |
Message |
sandip_mainframe Warnings : 2 New User
Joined: 20 Sep 2006 Posts: 27 Location: pune
|
|
|
|
Hi,
How to move to data item. Suppose I want to move 'JNLINTR' to data varible 'FILENAME'.
In COBOL like this MOVE 'JNLINTR' TO FILENAME.
How I can write this in assembler ?
Thanks in advance
Sandip walsinge. |
|
| Back to top |
|
 |
References
|
Posted: Mon Feb 25, 2008 3:25 pm Post subject: Re: How to move value of data variable in assembler |
 |
|
|
 |
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 1142 Location: At my desk
|
|
|
|
| Code: |
| MVC FILENAME,JNLINTR |
|
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 2562 Location: italy
|
|
|
|
in assembler there are small details that must be hand managed/specified/taken care of
one of these is the operand' s lengths in move instructions
the mvc instruction lets You specify only one length, the destination length
given that the length of the FILENAME variable is 8 bytes
| Code: |
12345678901234567890....
MVC FILENAME,=Cl8'JNLINTR' |
for a literal coded in this way the assembler will fill the residual length with blanks
| Code: |
=CL8'JNLINTR' is equivalent to
=C'JNLINTR ' |
|
|
| Back to top |
|
 |
|
|