ED Instruction and Edit Masks



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

Re: ED Instruction and Edit Masks

Postby bobguo » Mon Aug 19, 2013 11:10 am

                         00000       85 HEXTAB   EQU   *-C'0'             
0000F0 F0F1F2F3F4F5F6F7              86          DC    C'0123456789ABCDEF'


HEXTAB   DC    C'0123456789ABCDEF'


what's the differences between them?
bobguo
 
Posts: 76
Joined: Thu Apr 26, 2012 11:18 am
Location: shanghai
Has thanked: 22 times
Been thanked: 0 time

Re: ED Instruction and Edit Masks

Postby steve-myers » Mon Aug 19, 2013 4:55 pm


These users thanked the author steve-myers for the post:
bobguo (Tue Aug 20, 2013 7:16 am)
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: ED Instruction and Edit Masks

Postby bobguo » Wed Aug 21, 2013 9:56 am

00007E                0007E 000F0    18          ORG   MAIN+C'0'         
0000F0                000F0 000F0    19          ORG   ,


the last question:
what's the value of the memory from 00007E to 0000F0?
can we access it? (i think i have the answer to it, keep on using ORG to relocate location counter).
thanks.
bobguo
 
Posts: 76
Joined: Thu Apr 26, 2012 11:18 am
Location: shanghai
Has thanked: 22 times
Been thanked: 0 time

Re: ED Instruction and Edit Masks

Postby steve-myers » Wed Aug 21, 2013 7:22 pm

  • what's the value of the memory from 00007E to 0000F0?
    It's whatever the Binder decides to put there; it's not defined.
  • can we access it?
    Yes, but since it may not exist, you shouldn't try it. Consider
    PGM1     CSECT
             USING *,15
             SAVE  (14,1)
             TR    DATA,HEXTAB
             LA    0,L'DATA
             LA    1,DATA
             TPUT  (1),(0),R
             RETURN (14,1),RC=0
    DATA     DC    X'F0FAFBF0'
             ORG   PGM1+C'0'
             ORG   ,
    HEXTAB   EQU   *-C'0'
             DC    C'0123456789ABCDEF'
             END   ,
    and
    PGM2     CSECT
             USING *,15
             SAVE  (14,1)
             TR    DATA,HEXTAB
             LA    0,L'DATA
             LA    1,DATA
             TPUT  (1),(0),R
             RETURN (14,1),RC=0
             DC    100C'BLAH BLAH BLAH  '
    DATA     DC    X'F0FAFBF0'
             ORG   PGM2+C'0'
             ORG   ,
    HEXTAB   EQU   *-C'0'
             DC    C'0123456789ABCDEF'
             END   ,
    The point of the two ORG instructions before the HEXTAB definition is to make sure HEXTAB is addressable. There is empty space between DATA and the active part of HEXTAB in PGM1, but none in PGM2 Both programs assemble and run.

These users thanked the author steve-myers for the post:
bobguo (Thu Aug 22, 2013 6:05 am)
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: ED Instruction and Edit Masks

Postby bobguo » Tue Aug 27, 2013 10:27 am

though i have caught what this program's general purpose, but as one HLASM beginner, i don't know how to check its result.
under jes2, i can't see anything about it, or can somebody tell me how to refer to the message, which appeared on the terminal, sent by TPUT?
thanks.
bobguo
 
Posts: 76
Joined: Thu Apr 26, 2012 11:18 am
Location: shanghai
Has thanked: 22 times
Been thanked: 0 time

Re: ED Instruction and Edit Masks

Postby bobguo » Tue Aug 27, 2013 11:32 am

another one similar question, if i issued
WTO 'HELLO WORLD'
in the HLASM program, where can i find 'HELLO WORLD' appeared?
bobguo
 
Posts: 76
Joined: Thu Apr 26, 2012 11:18 am
Location: shanghai
Has thanked: 22 times
Been thanked: 0 time

Re: ED Instruction and Edit Masks

Postby steve-myers » Tue Aug 27, 2013 3:08 pm

under jes2, i can't see anything about it, or can somebody tell me how to refer to the message, which appeared on the terminal, sent by TPUT?
The TSO terminal operator running the program. The TPUT macro is the lowest level macro that a program running in the TSO environment can use to display output at the terminal of the TSO user running the program. A TPUT macro issued by a batch program will not display anywhere.
WTO 'HELLO WORLD'
in the HLASM program, where can i find 'HELLO WORLD' appeared?
  • In the JES2 JESMSGLG data set for the JES2 job running the program that issued the WTO macro.
  • In the SYSLOG data set for the system where the job was run.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Previous

Return to Assembler

 


  • Related topics
    Replies
    Views
    Last post