My requirement is to read a table data with a BLOB column > 32K length and store it in a file and then reload the file back to the table using DB2 load utility.
I know that while we unload BLOB data using DB2 utility through JCL, we provide a PDS for BLOB and a PS for rest of data. The PS file will have a reference to PDS file and member for the row to be loaded. This PS when used to load will automatically load BLOB data to table.
I need to understand if I can use same concept through cobol. That is to create a PS file with all data and reference to a PDS file. The PDS file will be created in COBOL with n number of members and store the BLOB data. Then define SYSPUNCH accordingly and use the PS file to load.
Will this concept work or is there some other concept. Also if this way it can work then how to know how many members to be created in PDS. How to specify multiple members in PS for a single row of data. I could not find any documentation.