Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 965
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: 6968
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us