开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Some questions about BSAM files on DOS/VS


 

On Tue, Jan 23, 2024 at 12:44 PM, Piotr Kolasiński wrote:
1. How to remove (delete) BSAM dataset from DASD? In MVS I just use DISP=DELETE and IEFBR14, but how to remove sequenced dataset, previously allocated with DLBL and EXTENTs in JCL?
I can't answer for your questions 2 and 3 (Fish, can you?). But for 1 above, I use a program called IKQVDU. It can be run in a batch job or interactively on the console. I used the latter.

It goes on like this (on the console):
?
a) release the PAUSEBG job from the reader queue:
? ?
? ?r rdr,pausebg
?
b) at the BG prompt, enter
?
? ?// ASSGN SYS000,X'cuu'? ? ? ?(the cuu of the disk containing the data set to delete)
? ?// EXEC IKQVDU,SIZE=AUTO
?
c) at the READY prompt, specify SCRATCH, then DSN, then the data set name:
?
?01 AR R RDR,PAUSEBG
?02 F1 1R88I? OK
?03 F1 1Q47I? ?BG PAUSEBG 00078 FROM 000
?04 BG // JOB PAUSEBG
?05? ? DATE 01/24/24,CLOCK 16/23/45
?06 BG // PAUSE
?07 BG // ASSGN SYS000,X'362'
?08 BG // EXEC IKQVDU,SIZE=AUTO
?09 BG? SPECIFY FUNCTION OR
?10 BG? REPLY? '?'? FOR OPTIONS
?11 BG? READY
?12 BG SCRATCH
?13 BG? TO SCRATCH ENTIRE VOLUME REPLY 'VTOC'
?14 BG? TO SCRATCH A PARTICULAR DSCB REPLY 'DSN'
?15 BG DSN
?16 BG? ENTER DSN
?17?
?18?
?19?
?20?
?0D07D? ENTER RESPONSE
?BG??
?
4. once done, type END to terminate the program and quit the PAUSEBG job by pressing Enter.
?
I think I have some documentation of the program somewhere. I will try to find it and put it in the Files section.
?
Cheers,
?
Rene FERLAND, Montreal

Join [email protected] to automatically receive all group messages.