IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

Query regarding Location Counter and ORG instruction

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> PL/I & ASSEMBLER
View previous topic :: View next topic  
Author Message
ap_mainframes



Joined: 29 Dec 2005
Posts: 144
Location: Canada

Posted: Thu Dec 29, 2005 9:31 am    Post subject: Query regarding Location Counter and ORG instruction  

Can anybody please explain the following to me in detail??

1. Every thing regarding Location Counter. And what is it exactly??
2. About ORG instruction.Is it something like REDEFINES in COBOL??

Thanks for all the help you can provide.

ap_mainframes
Back to top  
jon_s_rice



Joined: 24 Mar 2005
Posts: 106
Location: Douglasville, GA USA

Posted: Mon Jan 02, 2006 6:05 am    Post subject:  

The location counter keeps track of the current location in the CSECT or DESCT. The ORG instruction sets the location counter to a new address, usually an adddress relative to the current location. It can act like a redefine.
Back to top  
nijugopalan



Joined: 15 Oct 2005
Posts: 15
Location: pune

Posted: Sun Jun 25, 2006 2:05 pm    Post subject: Re: Query regarding Location Counter and ORG instruction  

I AM EXPLAINING U ORG
BALANCE DS CL100
ORG BALANCE
INCOME DS CL50


IN THIS EXAMPLE INCOME REDEFINES BALANCE
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> PL/I & ASSEMBLER
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM