Page 1 of 1

copy instream data from input to a ksds output.

Posted: Sun Feb 12, 2023 7:22 pm
by GhuGhu
Hi all I have a question for u.

I have to copy instream data from input to a ksds output file?
What are the terms and conditions applied to copy instream data to ksds file??

Re: copy instream data from input to a ksds output.

Posted: Mon Feb 13, 2023 9:40 pm
by Robert Sample
Well the first thing to know is that a KSDS is a keyed data set, so the key specified in the instream data must match the position and length of the KSDS key. You'll also need to validate that the instream data record length is compatible with the KSDS record length.

Second, you must ensure the instream data is sorted into ascending key sequence.

Third, use IDCAMS to REPRO the instream data to the KSDS. You may need to DELETE / DEFINE the KSDS before doing the REPRO since you'll need to be copying into an empty KSDS.