Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Difference between cobol INDEX and DB2 Index

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Difference between cobol INDEX and DB2 Index
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Confusion b/w index and subscript Deepak kumar25 Mainframe Interview Questions 7 Thu Aug 31, 2017 6:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us