MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

interview question..

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Interview Q & A
View previous topic :: View next topic  
Author Message
tilak
Beginner


Joined: 13 Sep 2006
Posts: 9
Topics: 7

PostPosted: Sat Sep 30, 2006 12:59 pm    Post subject: interview question.. Reply with quote

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
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Sun Oct 01, 2006 8:26 am    Post subject: Reply with quote

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
View user's profile Send private message
anbesivam
Beginner


Joined: 09 Aug 2006
Posts: 66
Topics: 14

PostPosted: Mon Oct 02, 2006 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Oct 03, 2006 7:01 am    Post subject: Reply with quote

tilak,

Look for OCCURS limit in the following link

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR10/APPENDIX1.2?DT=20020920180651

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Interview Q & A All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group