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 the CALC command does

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IDMS/ADSO
View previous topic :: :: View next topic  
Author Message
Mayos

New User


Joined: 11 Apr 2005
Posts: 16

PostPosted: Wed Apr 13, 2005 5:56 pm    Post subject: What the CALC command does
Reply with quote

Hello,

I would like to know if someone can explain to me what the CALC command does? Say ie OBTAIN CALC dbrecord?

Also, what does it mean when they say CALL 'database name' USING something? Does this mean that they are calling a certain database within the program using the given dbkey?

Thank you so very much. I appreciate the help.
Back to top
View user's profile Send private message

harishskumar

New User


Joined: 18 Feb 2005
Posts: 13
Location: Bangalore

PostPosted: Fri Apr 15, 2005 12:49 pm    Post subject: Re: What the CALC command does
Reply with quote

Hey,

Think you are new to IDMS.

There are 3 kinds of records in IDMS.

1.Calc Records
2.Via Records
3.Direct Records

Calc stands for "Calculated". When IDMS stores a record it calculates a target page based on a logical/symbolic key using hash alogorithm. So to get a calc record you need to supply the key value and say OBTAIN which will fetch the record from database.

Another thing to note is that OBTAIN is Equivalent to FIND + GET. Let me explain you what find and get mean.

FIND - will check the database for occurance of the record in the DB.
GET - will fetch the record for which currency has been established by previous FIND command in to Call area.

OBTAIN will do both establish currency onthe record and retrieve it to the Call area.

Hope this helps...

for remaining types of records and stuff I would suggest you to go thru IDMS manual or books..
Back to top
View user's profile Send private message
harishskumar

New User


Joined: 18 Feb 2005
Posts: 13
Location: Bangalore

PostPosted: Fri Apr 15, 2005 12:54 pm    Post subject: Re: What the CALC command does
Reply with quote

Sorry I forgot to answer your following question.

Quote:

Also, what does it mean when they say CALL 'database name' USING something? Does this mean that they are calling a certain database within the program using the given dbkey?


When you say USING something.... it means you are saying that the word after USING actually contains the Key value or reference to the key.
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 -> IDMS/ADSO All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm


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