Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to Initialize a BDAM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: How to Initialize a BDAM file
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us