Finding two fields in a file at the same time



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Finding two fields in a file at the same time

Postby yogeshvalhe » Wed Sep 01, 2010 12:36 pm

Hello All,

I have a question. I want to find find all those records by giving the two conditions.

Let us say...

0102 AAAA BBBB CCCC DDDD ABCD
0103 AAAA BBBB CCCC DDDD ABCD
0103 AAAA BBBB CCCC EEEE ABCD

Is it possible to search all those records which having '03' in position 3 and have ABCD at position 26

Let me know if there is such search command.

Thanks,
Yogesh
yogeshvalhe
 
Posts: 22
Joined: Wed Aug 18, 2010 3:32 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Finding two fields in a file at the same time

Postby NicC » Wed Sep 01, 2010 1:21 pm

Not as such. You can do it in a multi-step fashion - but back up the data first!

x all
f '03' 3 all
del all x
x al
f 'abcd' 26 all
del all x
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post