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
 

 

How to declare & access array in assembler?

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

New User


Joined: 02 Jul 2007
Posts: 13
Location: India

PostPosted: Mon Jul 16, 2007 12:15 pm    Post subject: How to declare & access array in assembler?
Reply with quote

Hi all...

Suppose i have declared a array variable in assembler like

aaa dc F'111,222,333,444,555,666'

now i want to access it.....can any one plz tell me what are instructions requred to access it by using BCT instruction...?

afroz
Back to top
View user's profile Send private message

afroz alam

New User


Joined: 02 Jul 2007
Posts: 13
Location: India

PostPosted: Tue Jul 17, 2007 3:17 pm    Post subject: How to declare & access array in assembler?
Reply with quote

Can anyon plz send the reply its urgent?




afroz
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Tue Jul 17, 2007 3:36 pm    Post subject:
Reply with quote

Learning assembler on an urgent basis is going to be difficult...
Try the PoP:
BRANCH ON COUNT (BCT, BCTR)
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: Wed Jul 18, 2007 12:32 am    Post subject:
Reply with quote

Hello,

Hopefully, you realize that BCT does not reference the array. . . BCT is a way to control the iterations thru the loop.

More often (in code i've written or supported), the BCT is not used. After incrementing the address in the array, it is usually checked to see if the end of the array has been reached. BCT means that you have to have to count entries each time there are adds or deletes to the table. If you use the end-of-table address (next byte after the table), the code controlling the loop does not need to be changed. I was once asked to look into a program problem that was caused by entries being modified in a similar array, but the count was not properly changed. It had been running wrong for a long time before the error was discovered. . .
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 Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
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 IMS DC screen Access sivasaras IMS DB/DC 3 Fri Nov 18, 2016 6:38 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am
No new posts RACF profile access vasanthz All Other Mainframe Topics 11 Fri Sep 23, 2016 5:51 am


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