Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What are Assembler directives ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Harsh Pawar

New User


Joined: 04 Jun 2008
Posts: 25
Location: Noida

PostPosted: Thu Jul 23, 2009 12:00 pm    Post subject: What are Assembler directives ?
Reply with quote

I understand that Assembler directives are instructions that direct the assembler to do something. Directives does not take any space in memory. ex: EQU , DS....

But when we write DS 1H it takes 2 bytes of memory so is it(DS 1H) a directive ?
Why we get S0C1 when we write DS 1H in our CSECT ??

Regards,
Harry.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7932
Location: Bellevue, IA

PostPosted: Thu Jul 23, 2009 2:57 pm    Post subject:
Reply with quote

DS 1H is defining two bytes of memory -- Define Storage 1 Halfword. It is not a directive because those two bytes become part of your load module. Depending on what else the program does (such as initializing them to something, perhaps), having two bytes of undefined value in the middle of your program is an excellent way to generate a S0C1 abend.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jul 23, 2009 8:28 pm    Post subject:
Reply with quote

Hello,

Quote:
But when we write DS 1H it takes 2 bytes of memory
Why did you do this? Where is it placed in the code?
Quote:
Why we get S0C1 when we write DS 1H in our CSECT
We don't. . . If this is defined in the middle of some executable instructions, an 0c1 is quite likely.

The DS 1H can be considered a "working storage" field and it is never a good idea to try to execute working storage. . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm
This topic is locked: you cannot edit posts or make replies. MVS Assembler profiles for Pune Locat... shailesh_do Mainframe Jobs 0 Mon Feb 22, 2016 6:21 pm
No new posts ASRA abend calling Assembler from CICS surya8 PL/I & Assembler 13 Thu Sep 10, 2015 7:50 pm
No new posts Is Enterprise PL/I v4.2 compatible wi... sundarkudos PL/I & Assembler 2 Wed Aug 19, 2015 11:15 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us