copy instream data from input to a ksds output.

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
GhuGhu
New Member
Posts: 5
Joined: Tue Dec 22, 2015 10:12 pm

copy instream data from input to a ksds output.

Post 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??
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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

Post 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.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”