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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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