IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to Initialize a BDAM file


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ARJUN

New User


Joined: 16 Nov 2004
Posts: 18
Location: Chennai

PostPosted: Thu Feb 16, 2006 3:22 pm
Reply with quote

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
View user's profile Send private message
sure116

New User


Joined: 03 Feb 2006
Posts: 11

PostPosted: Thu Feb 16, 2006 4:10 pm
Reply with quote

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
View user's profile Send private message
ARJUN

New User


Joined: 16 Nov 2004
Posts: 18
Location: Chennai

PostPosted: Wed Feb 22, 2006 1:59 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top