Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Hi Guyz,
My requirement is to empty out a PS file but not to delete.
How would I do that. Is there any Utility. If any other
way, plz answer. Thanks.

Answer Posted / bill cecchini

Use the dataset itself to get the required DCB attributes.

//STEP01 EXEC PGM=IEBGENER
//SYSUT1 DD DUMMY,DCB=USERID.DATASET
//SYSUT2 DD DSN=USERID.DATASET,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when does a dataset go uncataloged?

1266


How do you create a temporary dataset?

1138


How is a type of file defined in the jcl that executes the cobol program?

1152


What is the purpose of dd dummy statement?

1425


What is jcl in mainframe, and how many types of jcl statements are there for a job?

1130


What do you understand by the term notcat 2 – gs?

1208


What statement can be used to send data to another mvs jes3 node?

1599


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

1120


Why include statement is used in a jcl?

1134


Is automatic restart possible in jcl? If yes, how?

1086


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2756


what is JCL?

1122


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

2242


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

1185


Explain the jcl exec statement?

1102