Shiva
2014-05-07 04:23:04 UTC
Hello everyone! Been some time since I visited here and so much has happened. From the last time here I've developed so many small tools that will help newbies like me. Learnt more about tacl programming as well. Learning more everyday. All thanks to you people.
To my question now. Again a mainframe similarity that I'm trying to find in tandem. When I search for some string in a file using the mainframe TSO command, I used to get the 'number' of times the string was found, as well. Though this detail might seem unnecessary, I still got it. TEDIT's search doesn't seem to tell me that. Neither does EDIT's command - though it displays the list of lines where it is found. Is writing a macro/routine the only way around this? Or is there a way in both EDIT & TEDIT - which seems highly unlikely at this point.
And one more functionality of mainframe which I used to adore is the TSO command - NX ALL F ALL 'search_string'
For the non-mainframers, this command would delete or rather exclude all those lines except those which have the string which is searched. For example, if you search for 'Robin' in a file. All the lines except those which have the word robin will be deleted. I tried this with so many combinations of commands in TDIT but was unsuccessful, without using copy/retrieve - mainly because I don't want to create or use another file - when I can do that using just one file in mainframe, I'd like to do the same in NS. But finding it hard. Again, only a macro is the only way?
Being a mainframer whose thoughts are always aligned along those lines, since the day I started learning NS - I've always learnt with comparison - and hence such vague questions. May be I'm looking at this problem in a mainframer's way, when it can be done a bit differently in NS, Let me know if anyone of you can find answers to these?
To my question now. Again a mainframe similarity that I'm trying to find in tandem. When I search for some string in a file using the mainframe TSO command, I used to get the 'number' of times the string was found, as well. Though this detail might seem unnecessary, I still got it. TEDIT's search doesn't seem to tell me that. Neither does EDIT's command - though it displays the list of lines where it is found. Is writing a macro/routine the only way around this? Or is there a way in both EDIT & TEDIT - which seems highly unlikely at this point.
And one more functionality of mainframe which I used to adore is the TSO command - NX ALL F ALL 'search_string'
For the non-mainframers, this command would delete or rather exclude all those lines except those which have the string which is searched. For example, if you search for 'Robin' in a file. All the lines except those which have the word robin will be deleted. I tried this with so many combinations of commands in TDIT but was unsuccessful, without using copy/retrieve - mainly because I don't want to create or use another file - when I can do that using just one file in mainframe, I'd like to do the same in NS. But finding it hard. Again, only a macro is the only way?
Being a mainframer whose thoughts are always aligned along those lines, since the day I started learning NS - I've always learnt with comparison - and hence such vague questions. May be I'm looking at this problem in a mainframer's way, when it can be done a bit differently in NS, Let me know if anyone of you can find answers to these?