MVC WTO11+8(10),A (explanation)



High Level Assembler(HLASM) for MVS & VM & VSE

MVC WTO11+8(10),A (explanation)

Postby utpalpal07 » Thu Jun 21, 2012 3:49 pm

Hi,

           MVC WTO11+8(10),A                               
           MVC WTO11+20(2),B                                 
           MVC WTO11+24(4),C                                 
WTO11      WTO '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'               


please explain me the usage of the above code and its working.

Regards,

Utpal
utpalpal07
 
Posts: 43
Joined: Wed Feb 08, 2012 12:02 pm
Has thanked: 1 time
Been thanked: 0 time

Re: MVC WTO11+8(10),A (explanation)

Postby steve-myers » Thu Jun 21, 2012 7:25 pm

You have not told us what the contents of A, B and C are.

Why not write a small program that implements these instructions and find out for yourself?
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: MVC WTO11+8(10),A (explanation)

Postby steve-myers » Sun Jul 01, 2012 10:09 am

Assemble and run this -
TEST     CSECT
         USING *,12
         SAVE  (14,12),,*
         LR    12,15
           MVC WTO11+8(10),A
           MVC WTO11+20(2),B
           MVC WTO11+24(4),C
WTO11      WTO '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'
         RETURN (14,12),T,RC=0
A        DC    0CL10' ',10C'A'
B        DC    0CL2' ',2C'B'
C        DC    0CL4' ',4C'C'
         END   TEST
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: MVC WTO11+8(10),A (explanation)

Postby Adom_swar » Thu Nov 01, 2012 2:32 pm

WTO11+8(10) stands variable WTO11's 9th byte to 17th bytes, MVC WTO11+8(10),A setting WTO11+8(10) to a.
i didn't test this code, i think it will display a message like %%%%%%%%AAAAAAAAAA%%BB%%CCCC%%%%%%%%%% in your JESMSG.
Adom_swar
 
Posts: 2
Joined: Thu Nov 01, 2012 1:49 pm
Has thanked: 0 time
Been thanked: 0 time

Re: MVC WTO11+8(10),A (explanation)

Postby Adom_swar » Thu Nov 01, 2012 2:47 pm

i tested it, message like this:

03.15.03 JOB05369 +AAAAAAAAAA%%BB%%CCCC%%%%%%%%%%%%%%%%%%

it looks like command wto occupy the first 10 bytes of wto11. wto11 point to the head address of that line.
Adom_swar
 
Posts: 2
Joined: Thu Nov 01, 2012 1:49 pm
Has thanked: 0 time
Been thanked: 0 time

Re: MVC WTO11+8(10),A (explanation)

Postby steve-myers » Thu Nov 08, 2012 12:40 am

You have the right idea, but are far wrong about the details.

WTO is a macro. It is not a command. An Assembler macro definition is a skeleton that causes the Assembler to generate code. SYS1.MACLIB(WTO) is the macro definition. You might want to look at it, though don't try to understand it; it is quite involved, and it represents more than 40 years of patches. If its original author is still alive, he would almost certainly not recognize it, possibly have trouble finding anything he wrote.

it looks like command wto occupy the first 10 bytes of wto11. wto11 point to the head address of that line.

It would appear you did not bother to look at the macro expansion (the code generated by the macro) in the program listing. There is no command there!
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to Assembler

 


  • Related topics
    Replies
    Views
    Last post