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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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