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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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