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
 

 

command to know the prefix

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

Active User


Joined: 22 May 2009
Posts: 158
Location: Bangalore

PostPosted: Wed Jun 02, 2010 12:52 pm    Post subject: command to know the prefix
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 02, 2010 1:45 pm    Post subject:
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: 158
Location: Bangalore

PostPosted: Wed Jun 02, 2010 1:54 pm    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Jun 02, 2010 2:04 pm    Post subject:
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: 158
Location: Bangalore

PostPosted: Wed Jun 02, 2010 2:08 pm    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Jun 02, 2010 2:17 pm    Post subject:
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: 158
Location: Bangalore

PostPosted: Wed Jun 02, 2010 4:00 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Jun 02, 2010 6:40 pm    Post subject: Reply to: command to know the prefix
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: 158
Location: Bangalore

PostPosted: Thu Jun 03, 2010 9:51 am    Post subject:
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: 158
Location: Bangalore

PostPosted: Thu Jun 03, 2010 4:41 pm    Post subject:
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    Post subject:
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: 1218
Location: Israel

PostPosted: Thu Jun 03, 2010 5:39 pm    Post subject:
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

Site Director


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

PostPosted: Thu Jun 03, 2010 8:44 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Jun 04, 2010 2:47 am    Post subject: Reply to: command to know the prefix
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: 158
Location: Bangalore

PostPosted: Mon Jun 07, 2010 10:41 am    Post subject:
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

Site Director


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

PostPosted: Mon Jun 07, 2010 11:33 am    Post subject: Reply to: command to know the prefix
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Mon Jun 07, 2010 11:41 am    Post subject: Reply to: command to know the prefix
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

Senior Member


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

PostPosted: Mon Jun 07, 2010 7:15 pm    Post subject: Reply to: command to know the prefix
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

Site Director


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

PostPosted: Mon Jun 07, 2010 9:54 pm    Post subject: Reply to: command to know the prefix
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

Senior Member


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

PostPosted: Tue Jun 08, 2010 2:12 am    Post subject: Reply to: command to know the prefix
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. http://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    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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm


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