Use online and update/delete the records of a file

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
vanithaaraju
Member
Posts: 12
Joined: Tue Dec 11, 2007 4:51 pm

Use online and update/delete the records of a file

Post by vanithaaraju » Fri Sep 03, 2010 8:43 pm

Hi,

Please let me know is there any possibility of deleting some records from a PS file(based on some conditions) via online screens.
vanithaa

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Fri Sep 03, 2010 9:01 pm

if you are talking about qsam, even if you could access the file from CICS (i assume that's what you mean by 'online') the only way to delete (or add) records to a qsam file is by creating an second file based on the first and the adds/deletes you want to make.
this is called Father-Son processing.

you can not do direct deletes to a qsam file.

now if you are talking about esds, then yes you can. refer to the cics manuals for info.

qsam files are not allocatable by cics (other than as a tdq, but then you still have the Father-son requirement).

esds vsam files are allocatable by cics. there are api's to perform i/o on vsam files, there are no api's to perform i/o on qsam files.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

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