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. |
|
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
/*
|
|
|