Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us