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

Difference between cobol INDEX and DB2 Index


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
philipraju
Warnings : 1

New User


Joined: 16 Apr 2006
Posts: 29

PostPosted: Wed May 31, 2006 8:39 pm
Reply with quote

1.Can anybody tell me the difference between cobol INDEX and DB2 Index

2. I have one JCL with GDG creation,
here in the JCL I am going to create TWO GDG's

In the middle of the JCL i.e, in STEP2 and STEP3 creating two GDG's, after that STEP5 abended,....

In this JCL I want to restart the job from STEP5. In STEP6 I'm going to read the latest generation of the GDG ...... in this job how can I restart the job from STEP5 and which one is the latest GDG generation .... is the last created in job or previously created GDG?
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Wed Jun 07, 2006 3:51 pm
Reply with quote

Hi,
Quote:
1.Can anybody tell me the difference between cobol INDEX and DB2 Index


Index in COBOL is a special register variable ( that you don't have to define) which is used in conjuction with OCCURS clause and SEARCH ALL. It contains displacement of the perticular occurance of the array element.

Whereas INDEX in DB2 is a mechanism to improve access throughput. Often, attributes of a table is indexed if the application programs are more likely to use that column in where clause.

well, as far as your second question is concerned,

You can use RESTART=(JOBSETEP.PROCSTEP)
(0) will be the latest generation if you restart the job as its altogather a different instance of the job that you are running with RESTART option.

Thanks,
Parikshit
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
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