Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
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 Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us