Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to move value of data variable in assembler

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
sandip_mainframe
Warnings : 2

New User


Joined: 20 Sep 2006
Posts: 27
Location: pune

PostPosted: Mon Feb 25, 2008 3:25 pm    Post subject: How to move value of data variable in assembler
Reply with quote

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
View user's profile Send private message
References
PostPosted: Mon Feb 25, 2008 3:25 pm    Post subject: Re: How to move value of data variable in assembler Reply with quote

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 1190
Location: At my desk

PostPosted: Mon Feb 25, 2008 5:16 pm    Post subject:
Reply with quote

Code:
          MVC    FILENAME,JNLINTR
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 2647
Location: italy

PostPosted: Mon Feb 25, 2008 5:29 pm    Post subject: Reply to: How to move value of data variable in assembler
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1