jcl utilities

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
Pk
Member
Posts: 2
Joined: Fri Apr 06, 2018 3:35 pm
Location: Mumbai

jcl utilities

Post by Pk » Fri Apr 06, 2018 3:54 pm

Hi ALL,

I have a urgent requirement. Could anyone help me on this issue.
1. I have 2 input file 1st input file have record length 12156 and 2nd file have 80 record length.

So i want to compare a string from 2nd file to 1st file. I know the position of string in file 2. but i don't know the position of string in 1 nd file (but i know the range where i will get the string) . So can i compare this file. ? using jcl utilities

Input 2 file

Account No (position 18,length 16)
1234567891231415
1451114555512233


INPUT 1 file (Position 235 - 2000 in between i will find that string )
Note - String vary from 235-2000.

A BC CS 1234567891231415

A C 1451114555512233

A B 145111455551245

I need output file
if record match in 1 file i have write all the record with all the fields(fields length is 12156 .

OUTPUT FILE
A BC CS 1234567891231415

A C 1451114555512233

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