Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to assign assembler variable to a macro variable?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: How to assign assembler variable to a macro variable?
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: 7931
Location: Bellevue, IA

PostPosted: Tue Nov 24, 2009 7:46 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts PCOMM macro to call another PCOMM macro boyti ko All Other Mainframe Topics 4 Tue Jul 12, 2016 4:30 pm
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us