Import specific fields from one file to other.

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

Moderators: Frank Yaeger, Moderator Group

Post Reply
karthikpremnath
Member
Posts: 18
Joined: Wed Nov 03, 2010 9:59 am
Location: Mumbai

Import specific fields from one file to other.

Post by karthikpremnath » Thu Feb 10, 2011 8:03 am

Hi friends,
This is the first time I am using the utility ICETOOL.
I was trying to achieve the following, Please help me with code and explanation.

file1:
aaaa 90
bbbb 70
cccc 80

file 2:
aaaa 65
bbbb 87
cccc 56

O/P:
aaaa 90 65
bbbb 70 87
cccc 80 56.


In the above case I just want to extract specific field and paste it over other, and not by matching the records.

Please do provide some links for reference.

User avatar
Frank Yaeger
Moderator
Posts: 812
Joined: Sat Feb 18, 2006 5:45 am
Location: San Jose, CA
Contact:

Post by Frank Yaeger » Thu Feb 10, 2011 11:16 pm

What do you mean by "and not by matching the records"? You must be matching in some way. File1 record 1 to File2 record 1, File1 record 2 to File2 record 2, etc?
Or keys in each field (e.g. aaaa with aaaa)? Or what?

You need to do a better job of explaining the rules for getting from input to output.

Also, what is the RECFM and LRECL of the input files, and the starting position, length and format of each field in the input files and the output file?

As for references, you can find all of the DFSORT books at:

http://www.ibm.com/support/docview.wss? ... g3T7000080
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort

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