Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

PS/flat file comparison

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
jsnair

New User


Joined: 26 Sep 2006
Posts: 38
Location: India

PostPosted: Tue Oct 26, 2010 4:54 pm    Post subject: PS/flat file comparison
Reply with quote

Hello All,

I would like to have few clarifications about PS/flat file comparison.

1. Can we compare 2 PS/flat files against their columns. For example from the below sample files the values starting from column 12 to column 17 in File1 should compare against column 6 to column 12 in File2. Is this possible through any ISPF options or TSO commands.


File1:-

Code:
****** ***************************** Top of Data ****************************
=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7
000001 1000 TOOL1 MFG100                                                     
000002 1500 TOOL2 MFG100                                                     
000003 7000 TOOL3 MFG100                                                     
000004 8000 TOOL4 MFG100                                                     


File2:-

Code:
****** ***************************** Top of Data ******************************
=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
000001 1000 MFG100 TOOL1                                                       
000002 1500 MFG100 TOOL2                                                       
000003 7000 MFG100 TOOL3                                                       
000004 8000 MFG100 TOOL4                           



2. Can we insert new columns in an existing ps/flat file.
Back to top
View user's profile Send private message

Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Tue Oct 26, 2010 5:18 pm    Post subject:
Reply with quote

1. 3.13 - read the help

2. What do you mean by columns?
a. If you mean multiple positions holding various data elements, then this is not a flat file term - it is a database term.
b. If you mean column positions, then are you asking if you can add additional positions? If so, then that would be changing the LRECL - cannot do it.
c. If you mean put new data into the file - sure - just read a record, write whatever you want into it, then rewrite it.

I do not suppose my answer to your 2nd question is very useful. That is because the question is unclear.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Tue Oct 26, 2010 5:24 pm    Post subject:
Reply with quote

ispf utilities does not provide a way to compare different locations.

but, sort utilities can.

you could also write a REXX script (or use another programming language, or even sort) to rearrange one of the files so that the data is in similar columns,
then you could use SUPERC.

the answer to your second question is yes.

but to explain, would require much too much effort (and space in this thread)
to raise your skill set to that required to understand.

you should start by reading about fundamentals of z/os, datasets, and data in general.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us