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: 8057
Location: East Dubuque, Illinois, USA

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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm


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