hi,
Sure...
U may use any utility for creating PS/PDS.ie., idcams , iehprogm etc., All utilities will create PS/PDS but each one give different Maxcc.
IEFBR14 is not considered by IBM as an utility. It is a dummy program.
It can be used for a variety of things:
1. Creating Datasets
2. Deleting Datasets by Giving DISP=(MOD,DELETE,DELETE). The advantage it provides is even if the dataset does not exist, it will create and delete the dataset and give a low return code as 4.
3. It is used for setting a return code to 0. Just simply Execute the IEFBR14.
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
I think that you can store data in a new member of partitioned dataset but you cannot create it empty with IEFBR14.
IEFBR14, is useful to create a partitioned dataset but not its member!
In particular, IEFBR14 cannot open a dataset, IEFBR14, when allocate a dataset does not provide any I/O.
Thank you.
Using IDCAMS Repro command, I have created PDS member.
----------------------------------------------------------------------
So the conclusion is IEFBR14 can also be used to create or delete PDS. But member in the PDS can not be created using this utility.
----------------------------------------------------------------------
To create a PDS we have to specify DSORG=PO in the DCB parameter.
For example,
Following is the error message:
-----------------------------------
IEB806I STATEMENT SEQUENCE ERROR.
IEB808I TERMINATED THIS MEMBER. IEBUPDTE WILL TRY NEXT MEMBER. IEB818I HIGHEST CONDITION CODE WAS 00000004
Joined: 10 Jun 2005 Posts: 11 Location: Jacksonville
Hi Vidya,
Please try this code... It works
//IEFBR14 EXEC PGM=IEBUPDTE,PARM=NEW
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD DSN=V705435.VEL.LEARN.PDS,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(45,15,50)),
// DCB=(RECFM=FB,LRECL=80)
//SYSIN DD DATA
./ ADD NAME=VEL
HOW VEL HOW ARE YOU ?
./ ENDUP
/*
Joined: 10 Jun 2005 Posts: 11 Location: Jacksonville
Hi Vidhya,
You can give blank line or a line with some message. If you have some message a new member will be created with the data you specified. Otherwise just the PDS will be created. You can give so many ADD statements and the data in the next line..
Even the following code works.
It will Just create a PDS with no member inside.
//IEFBR14 EXEC PGM=IEBUPDTE,PARM=NEW
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD DSN=V705435.VEL.LEARN.PDS,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(45,15,50)),
// DCB=(RECFM=FB,LRECL=80)
//SYSIN DD DATA
./ ADD NAME=VEL
./ ENDUP
/*
Please try and let me know still if you have problem.