IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

command to know the prefix


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Wed Jun 02, 2010 12:52 pm
Reply with quote

Hi,
Can i get any command in the ISPF to know the prefix of any word.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 02, 2010 1:45 pm
Reply with quote

Please explain clearly exactly what it is that you wish to do, and give as much detail as possible, also examples if you think that it will help explain your question.
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Wed Jun 02, 2010 1:54 pm
Reply with quote

Hi,
Firstly i need to check a word overall in the given PS member and
if the word is suffixed with a X then only i would be able to get to know that its a proper one and i can go ahead with the logic else i need to skip the whole logic.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jun 02, 2010 2:04 pm
Reply with quote

what is it you want : prefix or suffix?
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Wed Jun 02, 2010 2:08 pm
Reply with quote

BOTH PREFIX AND SUFFIX needed so that i can modulate.

sorry for troubling.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jun 02, 2010 2:17 pm
Reply with quote

So a word has to start AND end with a "X" ?

And for the rest follow expat's advice.
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Wed Jun 02, 2010 4:00 pm
Reply with quote

start with a string im searching but end with an X.so it would be a prefix.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Jun 02, 2010 6:40 pm
Reply with quote

I think you need to be within the editor and your command needs to be an editor macro.

I think you can use the "FIND 'abc' PREFIX" command so that you only process the matching words.
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Thu Jun 03, 2010 9:51 am
Reply with quote

tHanks for that icon_smile.gif
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Thu Jun 03, 2010 4:41 pm
Reply with quote

Can i know what would be the value if i give the ISPF command as


Quote:

"F ALL '"string"'" whole_file




Does this return a boolean value 0/1 or true/false.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Jun 03, 2010 5:14 pm
Reply with quote

Return codes

0
Normal completion
12
Invalid command format
20
Severe error
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Jun 03, 2010 5:39 pm
Reply with quote

tecnokrat wrote:
"F ALL '"string"'" whole_file
What is that ??
What happened to all the prefix/suffix mixture ??

It makes me wonder... you are writing a macro, aren't you ??
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jun 03, 2010 8:44 pm
Reply with quote

Hello,

Quote:
Can i get any command in the ISPF to know the prefix of any word.
You know what you are talking about - we have confusion icon_confused.gif

Suggest you post a few sets of sample data and the "answer" you want when these samples are processed by your code. . .
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri Jun 04, 2010 2:47 am
Reply with quote

Code:

"F ALL '"string"'" whole_file

I am not sure what 'whole_file' is, but pretty sure you it is not part of the FIND syntax.
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Mon Jun 07, 2010 10:41 am
Reply with quote

whole_string is the file index that runs till the End Of File
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 07, 2010 11:33 am
Reply with quote

Hello,

Quote:
whole_string is the file index that runs till the End Of File
What is this. . . icon_confused.gif Use more and better words to describe what this says. . .

And, post the info requested earlier if you want help icon_sad.gif

d
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jun 07, 2010 11:41 am
Reply with quote

and even after 15 posts the issue is completely foggy icon_eek.gif
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Jun 07, 2010 7:15 pm
Reply with quote

repeating:

'whole_file' is not part of the FIND syntax.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 07, 2010 9:54 pm
Reply with quote

Yup, complete confusion. . .

If the diaolog isn't helping maybe this would help. . . (Also repeating):
Quote:
Suggest you post a few sets of sample data and the "answer" you want when these samples are processed by your code. . .


d
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Jun 08, 2010 2:12 am
Reply with quote

Quote:
whole_string is the file index that runs till the End Of File

You will want to study the Edit and Edit Macros manual. www-03.ibm.com/systems/z/os/zos/bkserv/r11pdf/#ispf

Write a macro that issues FIND repeatedly, until the return code indicates no more instances are found.

For each time FIND is successful, use CURSOR to find the row and column were the text was found. Use LINE to put the line of text into your rexx program.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top