Page 1 of 1

Not taking complete inserted data in ksds.

Posted: Sun Dec 09, 2012 7:52 am
by Nandini A
hi sir/mam,
I tried to insert data in a ps file to a ksds. It contains 20 records. it was executed succcesfully but only 11 records were inserted.
remaining records are not coming. can any one tel me the reason for this plz.................

Posted: Sun Dec 09, 2012 1:35 pm
by William Collins
Just guesses, as you have given no information. Duplicate/out-of-order keys.

Information needed to stop guessing:

Relevant code.

Posted: Sun Dec 09, 2012 3:01 pm
by NicC
How do you know that all records were inserted successfully? Did you check the return code after each write and was it zero every time. Just becasue you program did not fail does not mean it worked. You need to check EVERY file operation manually - OPEN, READ, WRITE, UPDATE, REWRITE, CLOSE etc.

Posted: Sun Dec 09, 2012 10:04 pm
by DikDude
How did you try to insert these records?

Program, utility, other?

Posted: Mon Dec 10, 2012 6:46 am
by Nandini A
hi, thank u fr all of ur rplies. I hv inserted those records through prgrm. I wil rply agn with cmplte informatn. Thank u

Posted: Mon Dec 10, 2012 6:55 am
by Nandini A
hi, i hv chkd d ksds file manualy also. Means i hv opened, red n tried to write new record in tat evn it ws psible. Wen i opned it itself i came to know tat all records which vr their in input file vr nt inserted.

Posted: Mon Dec 10, 2012 12:52 pm
by William Collins
Well, if you are unable to reveal any more about the code, or the input, then what do you expect from us?

Posted: Mon Dec 10, 2012 1:38 pm
by NicC
Please post in English - this is a forum for professionals - be professional in your presentation. I have not bothered to read your replies. If you cannot be bothered to present correctly then why should we be bothered to help? And do not say you were posting using your phone - either take the time to do it properly on the phone or wait until you get to a proper keyboard.

Posted: Tue Dec 11, 2012 12:13 am
by DikDude
When you ran the program, there was probably a failed vsam request. If you have not ensured that the return code for EVERY vsam request was correct, do so now.

STOP using the kiddie chat-room sms-speak. It is not cute, cool or anything related to a professional dialog. . . . :(

Topic deleted by Admin

Posted: Tue Jan 19, 2016 12:47 pm
by academyindia4
<< Content deleted By Admin >>