IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Instructions Within a DSECT


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pankaj Shrivastava
Currently Banned

New User


Joined: 24 Jul 2009
Posts: 51
Location: Pune

PostPosted: Fri Jul 24, 2009 7:03 pm
Reply with quote

Hi ,

Can we define an instruction within a DSECT , Like

ABC DSECT

SR R,R
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Jul 24, 2009 7:13 pm
Reply with quote

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
View user's profile Send private message
Pankaj Shrivastava
Currently Banned

New User


Joined: 24 Jul 2009
Posts: 51
Location: Pune

PostPosted: Fri Jul 24, 2009 9:44 pm
Reply with quote

Thx Bill for explaining in detail .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 24, 2009 11:02 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Error 0C1 Reason Code 1 with branch i... PL/I & Assembler 3
No new posts Using DSECT - for file reading PL/I & Assembler 2
No new posts Comments on the right of instructions... IBM Tools 1
No new posts SHIFT instructions Mainframe Interview Questions 12
No new posts Assembler - Performance of Compare In... All Other Mainframe Topics 18
Search our Forums:

Back to Top