Hi All,
First i would thank everyone who helped me in getting the solution for the previous tasks and hope i will be able to get the solution again.
I have blob of data which gets inserted into a single column from a file.
Sample Data :
0 CLAIM REFERENCE CAUSED RECORD DATA
NUMBER TO BE STRIPPED ELEMENT FIELD STATUS / FIELD VALUE
--------------- -------------- ------- ------------------------------------------------------------
28864973 YES 24 SECONDARY DIAGNOSIS IS NOT FOUND ON DIAG MSTR FILE
FIELD CONTAINS: 99999
28865303 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
28865641 YES 25 TERTIARY DIAGNOSIS IS NOT FOUND ON DIAG MSTR FILE
FIELD CONTAINS: 99999
28866272 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
28866351 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
28866352 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
28866353 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
28866354 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
28866355 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
28866356 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
-* ALTHOUGH THIS DATA ELEMENT WOULD NOT CAUSE THIS RECORD TO REJECT AS A STAND ALONE ALL ERRORS WITHIN A REJECTED RECORD
MUST BE CORRECT WHEN RESUBMITTED.
0 CLAIM REFERENCE CAUSED RECORD DATA
NUMBER TO BE STRIPPED ELEMENT FIELD STATUS / FIELD VALUE
--------------- -------------- ------- ------------------------------------------------------------
3195028866368 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
3195028866369 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
3195028866370 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
3195028866371 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
3195028866372 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
3195028866373 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
3195028866374 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
3195028866375 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
3195028866376 *NO 18 PHYSICIAN SPECIALTY IS INVALID
FIELD CONTAINS: 37
-* ALTHOUGH THIS DATA ELEMENT WOULD NOT CAUSE THIS RECORD TO REJECT AS A STAND ALONE ALL ERRORS WITHIN A REJECTED RECORD
MUST BE CORRECT WHEN RESUBMITTED.
I need to insert this data into another table storing
28864973 into ID field
YES/NO into Response field
18 into DataElement
PHYSICIAN SPECIALTY IS INVALID into FieldStatus
FIELD CONTAINS: 37 into FieldValue
The header and footer repeats everytime.
Rohan