View previous topic :: View next topic
|
Author |
Message |
naveensri2005 Currently Banned New User
Joined: 22 Mar 2005 Posts: 51 Location: chennai
|
|
|
|
hi guys,
How many register r there in Cobol? what r there? Explain Each?
regards
naveen |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
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 |
|
|
nal_satish
New User
Joined: 20 Jun 2005 Posts: 26 Location: Hyderabad
|
|
|
|
Hi ,
As per My knowledge
There are Two registers i know
1) TALLY Register
2) INDEX Register
Thanks & Regards,
Satish.N |
|
Back to top |
|
|
Hames
New User
Joined: 03 Oct 2005 Posts: 49
|
|
|
|
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 |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
Please let me know the syntax/example for INDEX register.
Thanks in advance!
Sridevi. |
|
Back to top |
|
|
yogeswariumapathy
New User
Joined: 14 Sep 2005 Posts: 4
|
|
|
|
i think v hav 4.
length
index
return-code
tally |
|
Back to top |
|
|
amolsun
New User
Joined: 06 Aug 2005 Posts: 4 Location: pune
|
|
|
|
hi
search is also one register,in string comnds replacing is also one register and |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
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 |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
Back to top |
|
|
|