DSA RSA and TGT



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

DSA RSA and TGT

Postby bobguo » Wed Dec 19, 2012 2:11 pm

below are two sentences found on the web:

When the Enterprise COBOL, COBOL for OS/390 & VM, or COBOL for MVS & VM program is running, R13 has the address of a DSA (dynamic save area) for the COBOL program. The address of the COBOL program's TGT is located at x"5C" in the DSA.
If R13 has the address of a save area associated with a called assembler program or COBOL runtime routine, use the save area back chain to find the DSA for the COBOL program. Then add x"5C" to find the address of the TGT.


can i samply think DSA = RSA(register save area)?

besides, can somebody explain what's the main purpose of TGT and DSA?

thanks.
bobguo
 
Posts: 76
Joined: Thu Apr 26, 2012 11:18 am
Location: shanghai
Has thanked: 22 times
Been thanked: 0 time

Re: DSA RSA and TGT

Postby BillyBoyo » Wed Dec 19, 2012 2:21 pm

This is a distinctly Cobol question. It will be moved to that part of the Forum here once we know that you've read this.

What have you already discovered about the TGT and DSA? Their names? Anything else?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: DSA RSA and TGT

Postby Robert Sample » Wed Dec 19, 2012 5:27 pm

Have you ever looked at a COBOL compile output listing? If you have, then you SHOULD have noticed the TGT and would understand its use. If you haven't, that is the first thing you should do.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to Assembler