Question on DISP=(NEW,...)

All sort of Mainframes Interview Questions.
Post Reply
Perumal r
New Member
Posts: 4
Joined: Thu Sep 18, 2014 10:28 am

Question on DISP=(NEW,...)

Post by Perumal r »

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.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1900
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Question on DISP=(NEW,...)

Post by Robert Sample »

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.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Question on DISP=(NEW,...)

Post by William Collins »

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".
Post Reply

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

Register

Sign in

Return to “Interview Questions.”