IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to assign assembler variable to a macro variable?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SanthoshN

New User


Joined: 13 Nov 2009
Posts: 8
Location: Chennai

PostPosted: Tue Nov 24, 2009 7:09 pm
Reply with quote

Hi,

I am editing a particular assembler Macro.My requirement is that

a) I have R14 which has the values possible from D0,D1,D2..DF in the last byte alone ie (00 00 00 D2). I need to extract the last nibble alone..that is, 2,3,F etc..I have written the assembler code to extact that part alone into an assembler variable say VRBLLVL (DS CL1).

Now my problem is that when I try to assign this value to a macro local variable say &C1 (LCLC &C1), the error which I get is

&C1 SETC VRBLLVL -> Invalid character expression

If I assign
&C1 SETC 'VRBLLVL' the C1 takes the value as VRBLLVL not the value of VRBLLVL.

Is there any way by which I can assign an assembler variable to a macro variable?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Nov 24, 2009 7:46 pm
Reply with quote

Macro code is handled at assembly time. Register 14 won't be set until the program executes. How do you resolve this issue?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Finding Assembler programs PL/I & Assembler 5
Search our Forums:

Back to Top