Not taking complete inserted data in ksds.

Post your questions related to VSAM

Moderator: Moderator Group

Post Reply
Nandini A
Member
Posts: 3
Joined: Mon Dec 03, 2012 7:32 pm
Location: India

Not taking complete inserted data in ksds.

Post by Nandini A » Sun Dec 09, 2012 7:52 am

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

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Sun Dec 09, 2012 1:35 pm

Just guesses, as you have given no information. Duplicate/out-of-order keys.

Information needed to stop guessing:

Relevant code.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Sun Dec 09, 2012 3:01 pm

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.
Regards
Nic

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Sun Dec 09, 2012 10:04 pm

How did you try to insert these records?

Program, utility, other?
Have a good one

Nandini A
Member
Posts: 3
Joined: Mon Dec 03, 2012 7:32 pm
Location: India

Post by Nandini A » Mon Dec 10, 2012 6:46 am

hi, thank u fr all of ur rplies. I hv inserted those records through prgrm. I wil rply agn with cmplte informatn. Thank u

Nandini A
Member
Posts: 3
Joined: Mon Dec 03, 2012 7:32 pm
Location: India

Post by Nandini A » Mon Dec 10, 2012 6:55 am

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.

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Mon Dec 10, 2012 12:52 pm

Well, if you are unable to reveal any more about the code, or the input, then what do you expect from us?

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Mon Dec 10, 2012 1:38 pm

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.
Regards
Nic

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Tue Dec 11, 2012 12:13 am

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. . . . :(
Have a good one

academyindia4

Topic deleted by Admin

Post by academyindia4 » Tue Jan 19, 2016 12:47 pm

<< Content deleted By Admin >>

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others