View previous topic :: View next topic
|
Author |
Message |
Pankaj Shrivastava Currently Banned New User
Joined: 24 Jul 2009 Posts: 51 Location: Pune
|
|
|
|
Hi ,
Can we define an instruction within a DSECT , Like
ABC DSECT
SR R,R |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
A DSECT is referred to as a "DUMMY SECTION" and takes up no storage until addressability has been established. After that, you can issue instructions related to this DSECT.
IE: ABC DSECT
USING *,Rx INFORM ASSEMBLER
Rx (x usually represents 2-12) is the register which contains the storage-address which maps to the DSECT. Unless you know what you're doing, stay away from R0, R1, R13, R14 and R15 as a DSECT base-register.
A COBOL LINKAGE SECTION "01" level is similar to a DSECT, for example, like DFHCOMMAREA in CICS.
COBOL automatically maps the storage (establishes addressability) to DFHCOMMAREA when EIBCALEN is greater than ZERO.
Otherwise, there's no addressability.
Bill |
|
Back to top |
|
|
Pankaj Shrivastava Currently Banned New User
Joined: 24 Jul 2009 Posts: 51 Location: Pune
|
|
|
|
Thx Bill for explaining in detail . |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
One of the notes in the HLASM Language Reference manual on DSECT specifically states
Quote: |
1. The assembler language statements that appear in a dummy section are not assembled into object code. |
|
|
Back to top |
|
|
|