Hi,
Following is the requirement:
1. FILEA - Sorted on account id - Position 2 - Length-8, Type- CH
2. FILE B- Sorted on account id - Position 43 , Lenght-8 Type-CH.
For every matched records I want to have new file having account id , Client code from FILEA, City Code, state code and julian date , amount and tax from file b.
May you help how can the file be matched and copied for the above scenario.
To copy the matched records data from two files.
Moderators: Frank Yaeger, Moderator Group
-
- Member
- Posts: 3
- Joined: Thu Dec 20, 2012 5:22 pm
-
- Member
- Posts: 3
- Joined: Thu Dec 20, 2012 5:22 pm
File A and File B are of FB having record length - 180
File A: 81108989898989-----
File B: 811758945666666666666666666666666666689898989
For the highlighed larger fond date. whenever there is a match the file should have follwing data:
Postion 1:8 Account Id ( from any file)
Position 9:13 Province Code ( from file B Position 11)
Next 6 postiion: date from File B( postion 6 length-5)
Next 8 postion Premium from file B( Postion 21 Length-9)
File A: 81108989898989-----
File B: 811758945666666666666666666666666666689898989
For the highlighed larger fond date. whenever there is a match the file should have follwing data:
Postion 1:8 Account Id ( from any file)
Position 9:13 Province Code ( from file B Position 11)
Next 6 postiion: date from File B( postion 6 length-5)
Next 8 postion Premium from file B( Postion 21 Length-9)
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page