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

How many register are there in cobol


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
naveensri2005
Currently Banned

New User


Joined: 22 Mar 2005
Posts: 51
Location: chennai

PostPosted: Mon Oct 03, 2005 8:20 pm
Reply with quote

hi guys,

How many register r there in Cobol? what r there? Explain Each?



regards
naveen
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Tue Oct 04, 2005 10:49 am
Reply with quote

Hi,
TALLY register is the one I know.
Example:
EXAMINE X TALLYING FOR ALL 'A'.
If X's value is "ABACUS",then TALLY register's value is 2,as there are two A's in ABACUS.
Regards,
Sridevi.
Back to top
View user's profile Send private message
nal_satish

New User


Joined: 20 Jun 2005
Posts: 26
Location: Hyderabad

PostPosted: Tue Oct 04, 2005 10:57 am
Reply with quote

Hi ,

As per My knowledge

There are Two registers i know
1) TALLY Register
2) INDEX Register


Thanks & Regards,
Satish.N
Back to top
View user's profile Send private message
Hames

New User


Joined: 03 Oct 2005
Posts: 49

PostPosted: Tue Oct 04, 2005 2:46 pm
Reply with quote

In COBOL, one more register is there. That is RETURN-CODE register.
Using this only We can pass the return code to the JCL.
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Tue Oct 04, 2005 7:31 pm
Reply with quote

Please let me know the syntax/example for INDEX register.
Thanks in advance!
Sridevi.
Back to top
View user's profile Send private message
yogeswariumapathy

New User


Joined: 14 Sep 2005
Posts: 4

PostPosted: Fri Oct 07, 2005 7:19 pm
Reply with quote

i think v hav 4.

length
index
return-code
tally
Back to top
View user's profile Send private message
amolsun

New User


Joined: 06 Aug 2005
Posts: 4
Location: pune

PostPosted: Sun Oct 09, 2005 10:08 am
Reply with quote

hi
search is also one register,in string comnds replacing is also one register and
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Sun Oct 09, 2005 11:38 am
Reply with quote

Hi,
I don't think,length,index,search and replacing are registers.
Tallying,return-code,when-compiled,time-of-day and current-date are registers. Do correct me on my mistake(s).
Sridevi.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Mon Oct 10, 2005 7:30 am
Reply with quote

special registers are listed here

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/igy3lr30/1.3.8?ACTION=MATCHES&REQUEST=register&TYPE=FUZZY&SHELF=&DT=20050714120224&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT

Dave
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top