The Ddl2Pds.sh script is found in the samples directory in product file system, which by default is /usr/lpp/zWebSphere/V8R0/zOS-config/samples. You can copy the script and customize it with your configuration information.
Ddl2Pds.sh
-Source <Directory containing source files>
-PDS <Target PDS name>
-Component <Files to transfer WPS/BPC/BSP/BPS/BDW/file name/ALL>
-Prefix <2-character PDS member name prefix> (default AA)
-WorkDir <Work directory> (default /tmp)
-ConvertCodepage <Convert codepage y/n> (default use file suffix)
Run the script in a UNIX System Services environment. The script displays the parameter values, then asks whether it is safe to proceed.
If the PDS does not exist, the script attempts to create it. If the PDS exists, the script prompts for confirmation that it can reuse the existing PDS. The script aborts if it cannot reuse an existing PDS.
As members are copied over, if an identically-named member is found to exist in the PDS, the script prompts you to confirm whether to overwrite the existing member. The file is skipped if the existing member cannot be overwritten.
Finally, the script creates a <Prefix> README member that contains a log of which SQL files were copied into the PDS.
/u/healdr/dbutil/20120120-0001:>./Ddl2Pds.sh -Source /u/healdr/dbutil/DustBowl/WBI_CommonDB
-PDS HEALDR.DDL2PDS.TEST -Component WPS
Ddl2Pds script executing ... Tue Jan 24 11:59:32 GMT 2012
Source = /u/healdr/dbutil/DustBowl/WBI_CommonDB
PDS Name = HEALDR.DDL2PDS.TEST
PDS Member Prefix = AA
Work Directory = /tmp
Component = WPS
Codepage conversion = OnSuffix
Enter y to proceed, anything else to cancel
y
Reuse HEALDR.DDL2PDS.TEST (y to confirm)?
y
Processing SQL file dropDatabase.sql
Processing SQL file createDatabase.sql
Processing SQL file createTable_AppScheduler.sql
Processing SQL file createTable_CommonDB.sql
Processing SQL file createTable_customization.sql
Processing SQL file createTable_DirectDeploy.sql
Processing SQL file createTable_EsbLoggerMediation.sql
Processing SQL file createTable_governancerepository.sql
Processing SQL file createTable_lockmanager.sql
Processing SQL file createTable_mediation.sql
Processing SQL file createTable_Recovery.sql
Processing SQL file createTablespace_Relationship.sql
Processing SQL file createTable_RelationshipService.sql
Processing SQL file insertTable_CommonDB.sql
Ddl2Pds processing complete
Ddl2Pds log file created by HEALDR Tue Jan 24 11:59:43 GMT 2012
dropDatabase.sql copied to member AAWPS1
createDatabase.sql copied to member AAWPS2
createTable_AppScheduler.sql copied to member AAWPS3
createTable_CommonDB.sql copied to member AAWPS4
createTable_customization.sql copied to member AAWPS5
createTable_DirectDeploy.sql copied to member AAWPS6
createTable_EsbLoggerMediation.sql copied to member AAWPS7
createTable_governancerepository.sql copied to member AAWPS8
createTable_lockmanager.sql copied to member AAWPS9
createTable_mediation.sql copied to member AAWPS10
createTable_Recovery.sql copied to member AAWPS11
createTablespace_Relationship.sql copied to member AAWPS12
createTable_RelationshipService.sql copied to member AAWPS13
insertTable_CommonDB.sql copied to member AAWPS14
Ddl2Pds log file closing Tue Jan 24 11:59:46 GMT 2012