Is there a difference in UNIT=DASD or TAPEC while files are created?

JES2/3, JCL, utilities.
Post Reply
Neeraj N
Registered Member
Posts: 54
Joined: Tue Aug 20, 2013 12:49 pm

Is there a difference in UNIT=DASD or TAPEC while files are created?

Post by Neeraj N »

Hi,

One of our COBOL program has got some files. Not all the files are will opened or written to on every run of the program. It depends on the values supplied by a member by parmlib. There is a strange thing we have noticed that if the files are being created on DASD the empty files does created even if the file is never opened or written by the program though when JCL is using UNIT=TAPEC for the same file and file is not opened, an empty file is not created. Why would such a thing happen and make a difference with DASD and TAPE?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Is there a difference in UNIT=DASD or TAPEC while files are created?

Post by nicc »

Are you using the DEFER paramaeter for the tape data sets?
Regards
Nic
User avatar
Anuj Dhawan
Founder
Posts: 2799
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Is there a difference in UNIT=DASD or TAPEC while files are created?

Post by Anuj Dhawan »

Is not it a default behavior for an SMS managed site?
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
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 “JCL - Job Control Language.”