I was also asked if the DISP=(NEW,...) (he did not mention about the other DISP parameters) when the "memory" is allocated to dataset?
To this I asked, did you mean memory or storage? He was not sure but he insisted that I answer his question.
I said, if a COBOL program has a dataset allocated with DISP=(NEW,..) and the WRITE is not yet issued in the program, the storage is not allocated. But this confuses me more. If you have a better answer, please do share.
Question on DISP=(NEW,...)
- Robert Sample
- Global Moderator
- Posts: 1900
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Question on DISP=(NEW,...)
Buffers are allocated in memory when the data set is opened, no matter what the DISP is in the JCL. Disk space will be allocated when the job step execution starts.
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
Re: Question on DISP=(NEW,...)
It seems your interviewer just has a list of questions, at least some of which they don't understand. At least you are no worse off than others they "interview".
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute