Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
an issue with empty datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
eashwar

New User


Joined: 21 May 2005
Posts: 26
Location: Bangalore

PostPosted: Wed Aug 31, 2005 12:57 am    Post subject: an issue with empty datasets
Reply with quote

write jcl for the following requirement

take two empty datasets one as input and other as output

a cobol pgm is reading the input dataset and writing it to the output dataset.

do we need to code any extra parameter or option in the dd statement of the input.

//ddin dd dsn=datasetname, disp=shr

i have given the above answer in the interview but she told "na"

some body told me that we really code some thing along with the above code.....

real time fellows are the best to answer this query.......
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Wed Aug 31, 2005 9:16 am    Post subject: Re: an issue with empty datasets
Reply with quote

Hi Eashwar,

You are correct. If file already created then we have to write only disp=shr with dataset name. Irrespective of file contains data or not.

Regards
Rupesh
Back to top
View user's profile Send private message
spanda

New User


Joined: 31 Aug 2005
Posts: 48
Location: U.K.

PostPosted: Wed Aug 31, 2005 10:12 pm    Post subject:
Reply with quote

Hi Eeshwar,

If the output file is already existing, then it may have a DISP=SHR, DISP=OLD or DISP=MOD, depending on whether the output data overwrites the existing data (OLD or SHR) or is appended to the data in the output file (MOD).
Back to top
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Thu Sep 01, 2005 3:09 am    Post subject: hi
Reply with quote

If the input dataset is empty what is tthe necessity to copy it in the first place and if u have to u could code it as a dummy

dd dummy

mention the disp as new,catlg,delete.u cannot use share unless u r sure that the dataset is already existing.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Unavailable RECON datasets while exec... abdulrafi JCL & VSAM 10 Fri Apr 06, 2018 12:45 pm
No new posts CICS-MQ connection setup issue kaushikv CICS 3 Wed Mar 21, 2018 8:10 pm
No new posts Creation of Datasets dynamically on t... Raghu M N DFSORT/ICETOOL 8 Fri Mar 16, 2018 12:56 am
No new posts Need Help!!CEE library issue while br... kaushikv CICS 9 Fri Mar 09, 2018 6:06 pm
No new posts Tape file issue abdulrafi JCL & VSAM 2 Thu Feb 08, 2018 12:01 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us