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
 

 

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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm


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