View previous topic :: View next topic |
Author |
Message |
tilak Beginner
Joined: 13 Sep 2006 Posts: 9 Topics: 7
|
Posted: Sat Sep 30, 2006 12:59 pm Post subject: interview question.. |
|
|
1. how many sub group levels of occurs we can give in cobol-max?
2.i can i copy some selected records from one ps to anoyher ps file
3.in endevor if two persons has retrived the same source code at same time and they submit at differnt time .what will happen? i mean the first person who submitted will get 01 version if it 00 version when the second person submits what will happen? |
|
Back to top |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Sun Oct 01, 2006 8:26 am Post subject: |
|
|
Tilak,
Answer to your second question can be done by using some SORT control statements.
Try this code:
Code: |
//STEP010 EXEC PGM=SORT
//SORTIN DD DSN=USERID.INPUT,DISPS=HR
//SORTOUT DD DSN=USERID.OUTPUT,DISP=SHR
//SYSIN DD *
INCLUDE COND=(5,1,CH,EQ,C'Z')
/*
//
This code will copy records if the 5 th position has letter Z in the input dataset and for example if there are total 10 records out of which only 4 records have letter Z in the 5 th position,only 4 records will be copied to the output dataset.
|
_________________ Shekar
Grow Technically |
|
Back to top |
|
 |
anbesivam Beginner
Joined: 09 Aug 2006 Posts: 66 Topics: 14
|
Posted: Mon Oct 02, 2006 8:09 am Post subject: |
|
|
For your 3rd question,
I have understood your question in following way
1. Source is checked out at same time (user1 and user2)
2. Modified source is submitted by User1 first, User 2 submits second... In this case User 1 code will be override, If you are not comparing your source with latest one. History will show all the details. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
|
|