S0C7 ISSUE – FIND THE INVALID (FAULT) DATA

When a S0C7 happens due to invalid data in a file, how do you find the invalid data in the file?

For this you can make use of FILE MANAGER or FILE AID

In file manager, open the file with its copybook, and then issue the command “FE” which will point you to the first error field. Keep pressing ENTER to go one by one error records.

In FILE AID, open the file with its copybook, and then issue the command.

“F /FIELD NAME INVALID”

“F /FIELD NUMBER INVALID”

This will show you the error in that particular field.

Example: F /ACCT-NO INVALID or F /2 INVALID

Here ACCT-NO is the field that you to want look in for error data. Also ACCT-NO is in the second field in the COPYBOOK.

——————————————————————————————————–

In United States, If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog

——————————————————————————————————–

You may also like to look at:

Working on Mainframes – Is Change to a different technology necessary
SORT JOIN – TO JOIN TWO FILES BASED ON A KEY
KNOW YOUR MAINFRAME
REXX – INITIAL SETUP
CA7 – LJOB, LQ, LRLOG
CA7 – ASSIGN PF KEYS TO PERFORM YOUR COMMANDS
CA7 – LEAD TIME CONCEPT (LOOK BACK ISSUE)
CA7 Commonly used Commands
Mainframe Manuals/References/Guides/Documents Download Links
HEX Value 41 – Confused as SPACE (Hex value of 40)
EVER WONDERED WHAT DOES Z MEAN IN Z/OS
Search for a string that is in mixed case inside a PDS
S0C7 ISSUE – FIND THE INVALID (FAULT) DATA
HRECALL – MASS RECALL IN BATCH MODE
Nice Article to answer the myths on Mainframes
MAINFRAME – PS DATASET GETTING NUMBER AT END AUTOMATICALLY
MAINFRAME – GRANT and REVOKE Dataset Access
File Status Key Overview
TSO/E COMMANDS
SDSF; Status panel (ST) Columns
ABEND CODES
Glossary of z/OS terms and abbreviations
AMODE and RMODE
IMS INTERVIEW QUESTIONS
SDSF TIPS
NDM – FASTER MODE
FILEMAXX
BATCH PIPES
What is a Catalog
Important SQL CODES and ABEND CODES
Conditional processing
Advertisement