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
 
Cobol interview Questions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Wed Jan 21, 2009 6:26 pm    Post subject: Cobol interview Questions
Reply with quote

Hi All,
Q1) There is a master file(PS) A and we have two more PS files B & C which has the updated records which is a part of A(Master file), Basically we have to match the records in A with B & C and update the records in master file(A). how can we do that?

Q2) I am writing some records through a cursor into a PS file at some point for some reason the programe is getting abend or stopped at 1000th record. now how can i start from the 1001th record and continue the process.

Note: These questions were asked in an interview, i dont know the answers thats the reason i am posting here.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 21, 2009 9:18 pm    Post subject:
Reply with quote

Hello,

1. Either write a 3-file match/update or first combine the 2 transaction files into one and then do a 2-file match/update to update fileA.

2. The program would need to include restart logic. Places that still perform this type of restart already have a methodology in place and whatever it is, that methodology should be used. Implementing restart logic is less and less common due to the speed of the new cpus and dasd as well as the complexity of managing the restart in a large integrated environment. It is usually faster and cleaner to restart from the beginning of a process than try to continue from some point "in the middle".
Back to top
View user's profile Send private message
rajulan

New User


Joined: 11 Jan 2008
Posts: 66
Location: India

PostPosted: Thu Jan 22, 2009 3:15 pm    Post subject:
Reply with quote

For Db2 restart Logic. you can check the below links.

http://www.ibmmainframes.com/about7691.html

http://www.ibmmainframes.com/about1686.html

If u search the forum topics, u will be able to get more info you need.

Thanks,
Rajulan.
Back to top
View user's profile Send private message
lohithegde

New User


Joined: 18 May 2008
Posts: 31
Location: Chennai

PostPosted: Thu Jan 22, 2009 4:53 pm    Post subject:
Reply with quote

Hi i think you are using Cobol as Programing Lang
Q1) Merge both B and C and then use matching logic
Dont forget to use Sort step before that
Q2) Restart logic should be used...Normaly we use Restart logic for programs involves Databse operation
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
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 ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm

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