Compare to files - write the count of matching - Easytrieve

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
dsarlie
Member
Posts: 1
Joined: Thu Jul 24, 2014 12:32 am

Compare to files - write the count of matching - Easytrieve

Post by dsarlie » Thu Jul 24, 2014 12:35 am

I dont know what is easytrieve.But as per my knowledge this can be acheived through EASYTRIEVE.

I want to group values present in column 23 - 3bytes and column 36 - 3 bytes and get the count

The value in 23 position - 3 byte is not always HJU,MKL,DOS,WIN,NEN,NEW,HEW

It is the same with column 36 - 3 bytes

The ONE INPUT FILE IS



***************************** Top of Data ***********
2015304ALI3E7ANHHJH747HJU2013-05-01WER
2011504ALI3HRSDSDSD272HJU2013-05-29JUE
2015304ALI3IVUEFG09642MKL2013-05-01WER
2011504ALI3I1RTRTRT059DOS2013-05-01FEP
2011354GEN0SJFER22980RHJU2013-04-26WER
2015305GEN0T9ZIONEREREDOS2013-04-26SIN
2011304GEN0VTKRT92567RWIN2013-04-26FUL
2015304GEN1ZLDGFHSDFHDNEN2013-04-24WER
2011354GEN1ZMDFDFDRERENEN2013-04-26WER
20W1304GEN20YEREREREREHEW2013-05-29QTC
2011W04GEN21U643756634NEN2013-05-29WER
**************************** Bottom of Data *********
2ND INPUT FILE

**************************
WER
QTC
HMJ
**************************
The ouput I require is

WER HJU 2
WER MKL 2
QTC HEW 1
WER NEN 3
HMJ 0
Can someone help me with this.
--------------
Regards
Jeba

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