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
 

 

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 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 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
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


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