Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us