I have Input file as VSAM file and Parm value passed from JCL. if these two match the record needs to be deleted from the input VSAM file. Please could you give me the logic in Cobol code for this.
1
There are 1 best solutions below
Related Questions in VSAM
- How to define AIX(alternate index) in CICS FCT entry?
- VSAM file read maven dependency
- Effective ways to avoid skipping a record
- How to run a Cobol application on Hercules mainframe emulator (Terminal 3270)
- How to update vsam file records?
- how to solve INVEREQ error in reading a vsam file?
- How to read a vsam file using CICS
- Delete entire content in a VSAM file
- READ from VSAM file using CICS
- Calculating the record size of alternate index for a VSAM ksds file
- VSAM file to be updated outside of mainframe
- Printing records from a VSAM KSDS shows characters with periods
- KSDS file - Duplicate key error in Ditto utility
- File status 39 in VSAM KSDS file
- How to read VSAM files from z/OS using Java?
Related Questions in COBOL85
- Display order doesn't show nothing of file content when is executed a compiled .cbl file with cobcrun
- How to compute custom timestamp in COBOL85 Tandem?
- Store "Nº" before number in COBOL
- How to work with dynamic strings in Cobol?
- Getting current line number in Cobol
- First calculated records in record-line/output-line becomes BLANK in output in COBOL
- What does Cobol file status 9Â mean?
- How do I rectify this logical error in printing output in the SYSOUT spool from COBOL program?
- What is the standard COBOL RANDOM function implementation?
- COBOL85: How to find number of rows in an array dynamically
- COBOL - Understanding SET MYSELF
- COBOL Record description entry I cannot decipher
- Is there someway to log variables in COBOL like the other languages?
- Unknown exact format of COBOL-85 source files
- What is the difference between COBOL Nested Program vs. Subroutine in Z/OS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I've asssumed that the PARM value passed from the JCL is the Primary key to the VSAM file. Please go through the following code and check if it meets your requirement.
In the VSAM file you would have a 6 byte field for Employee ID (acting as the key) and 20 byte field for Employee name. The PARM value passed from the JCL is the Employee ID. The Access mode of VSAM file is random and the PARM value is being used to delete the record in the VSAM file, if present.