View previous topic :: View next topic
|
Author |
Message |
lakshmibala
New User
Joined: 16 Jun 2004 Posts: 47
|
|
|
|
hi all,
these are some interview questions asked in CTS.
1. what is the option used in file-aid to make a VSAM dataset available to all ?
2. can we create a tape drive data set and can we delete it if once created?
3. what is the default block size and logical record length?
4. what happens when we give a stop run in a sub-program ? |
|
Back to top |
|
|
RamKumar
New User
Joined: 11 Aug 2004 Posts: 3
|
|
|
|
Hi
Answer for 4th questions
Total Run unit will stop ( i.e total excution will stop)
lakshmibala wrote: |
hi all,
these are some interview questions asked in CTS.
1. what is the option used in file-aid to make a VSAM dataset available to all ?
2. can we create a tape drive data set and can we delete it if once created?
3. what is the default block size and logical record length?
4. what happens when we give a stop run in a sub-program ? |
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Quote: |
2. can we create a tape drive data set and can we delete it if once created? |
Yes and Yes.
Quote: |
3. what is the default block size and logical record length? |
Of What? |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Quote: |
2. can we create a tape drive data set and can we delete it if once created?
|
A tape ds differs from a dasd ds in this respect:
A dasd ds, when deleted, is uncataloged (if it were cataloged in the first place) and it "disappears" (well almost). None of the usual system services can access it.
When a tape ds is "deleted" it is uncataloged but the label that identifies it and its application data is still available. If you can finf the physical tape after the "deletion" you can still access the data. If your shop uses a Tape Mgmt System the tape may (can't say for sure - don't recall) be assigned to the scratch pool where it can be reused.
Quote: |
3. what is the default block size and logical record length?
|
As I recall, it's 80X80.
Regards, Jack. |
|
Back to top |
|
|
jz1b0c
Active User
Joined: 25 Jan 2004 Posts: 160 Location: Toronto, Canada
|
|
|
|
lakshmibala wrote: |
hi all,
4. what happens when we give a stop run in a sub-program ? |
bala,
If you give stop run in a sub program, control will not be returned to the calling program, but control will be returned to OS. So your program execution completes. |
|
Back to top |
|
|
gowtham_srgp
New User
Joined: 09 Jun 2005 Posts: 38
|
|
|
|
lakshmibala wrote: |
hi all,
these are some interview questions asked in CTS.
1. what is the option used in file-aid to make a VSAM dataset available to all ?
2. can we create a tape drive data set and can we delete it if once created?
3. what is the default block size and logical record length?
4. what happens when we give a stop run in a sub-program ? |
hai.
3. default block size is 1 record per block for a cobol file. logical record length is 80.
4. stop run on a sub program returns the control to the os and it means the end of the run unit. i don't think we can run the program like this as it will be the main program which will be run and the main program will also expect the control to be returned back to it.
corrections welcomed..........
gowtham |
|
Back to top |
|
|
vijayamadhuri
Active User
Joined: 06 Apr 2005 Posts: 180
|
|
|
|
Quote: |
hi all,
1. can we create a tape drive data set and can we delete it if once created?
|
Once we data is mountes on tape the only we way to retreive the data is to mount the tape and access the data.So in order to make any changes u should have the authority . |
|
Back to top |
|
|
|