|
|
| Author |
Message |
ARJUN
New User
Joined: 16 Nov 2004 Posts: 18 Location: Chennai
|
|
|
|
Dear All,
I am able to read data from BDAM file to PS file but I am not able to write records into a new BDAM file from a PS file. I think for writing records into a new BDAM file we have to initialize it, I initialized BDAM data set by inserting and deleting records using FILE-AID then executed the program but it fails with SYNAD error.
Can anybody help in this regard how to initialize a BDAM file other than FILE-AID will be greatly appreciated. |
|
| Back to top |
|
 |
References
|
Posted: Thu Feb 16, 2006 3:22 pm Post subject: Re: How to Initialize a BDAM file |
 |
|
|
 |
sure116
New User
Joined: 03 Feb 2006 Posts: 11
|
|
|
|
Usually BDAM files never get initialized.
The Cluster of particular BDAM file needs to be deleted and recreate the new cluster again.
Then copy the data from your PS file to BDAM file.
Regards
Suresh |
|
| Back to top |
|
 |
ARJUN
New User
Joined: 16 Nov 2004 Posts: 18 Location: Chennai
|
|
|
|
Dear All,
I am able to initialize a BDAM file using IEBDG utility with DSORG=PS and RECFM=F, here is an example for this.
| Code: |
//IEBDG EXEC PGM=IEBDG,REGION=8M
//SEQOUT DD DSN=XYZ.BDAM.DATA,
// SPACE=(CYL,(150)),LRECL=18442,RECFM=F,DISP=(,CATLG)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DSD OUTPUT=(SEQOUT)
FD NAME=F1,LENGTH=18442,STARTLOC=1
CREATE QUANTITY=6750,NAME=(F1),FILL=X'40'
END
/*
|
|
|
| Back to top |
|
 |
|
|