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

Problem in finding or changing long strings


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Nov 16, 2007 4:32 pm
Reply with quote

Hi all,
I have to issue the below mentioned command in a JCL. But the space in Primary Command line is not enough to type. How can I solve this problem?

C 'GHTY.TESTING.MEMBERS.LIB' 'FTGN.TESTING.MEMBER.MAINLIB' ALL

Thanks,
Gnanas
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Nov 16, 2007 4:37 pm
Reply with quote

gnanas,

You can do this in 2 steps.

1)

Code:
f 'DSN=AAAAAAAAAAAAAAAAAAAAAA,DISP=SHR'


2)

Code:
c * 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbb'


* will hold the result of the previous command.
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Nov 16, 2007 4:51 pm
Reply with quote

Thanks Aaru.

But for finding only, How can I do?


F 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ALL

Regards,
Gnanas
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Nov 16, 2007 4:59 pm
Reply with quote

in view or edit session any time I want to find or change a string that would exceed my command line entry i edit the the following rexx in a swap mode, save it , swap back to my view/edit session and execute the edit macro; i.e. CHGTHIS.

Code:

/*  REXX  */
/*    edit macro CHGTHIS                                                  */
/*             YOU CAN HAVE AS MANY                                  */
/*              ISREDIT 'CHG ASTEX70 "SEARCH STRING"                 */
/*                              "CHANGE STRING"'                     */
/*             AS YOU WANT                                           */
/*             THEY CAN BE TWO LINES OR JUST ONE IF THE              */
/*              SEARCH STRING AND CHANGE STRING ARE SMALL ENOUGH.    */
/*              JUST REMEMBER TO HAVE A SINGLE QUOTE FOLLOW THE LAST */
/*              DOUBLE QUOTE IN THE CHANGE STRING                    */
/*                                                                   */
ISREDIT MACRO
ISREDIT 'CHG ALL "TA-READ-AZT-QM-CTRL"
                   "TA-READ-AZT-QM-MEASUREMENT"'
EXIT
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Nov 16, 2007 5:08 pm
Reply with quote

Dick,

I tried with that code and is working fine. Thanks for the macro.

gnanas,

Just an additonal point. Save the rexx macro in a PDS which is allocated to SYSEXEC/SYSPROC to use the macro.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Nov 16, 2007 5:12 pm
Reply with quote

gnanas,

Change the following in dick's code to find a long string.

Code:
ISREDIT MACRO                                                       
ISREDIT 'FIND ALL "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"'
EXIT                                                               
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Nov 16, 2007 5:16 pm
Reply with quote

Thanks Aaru and Dick.

The code is working fine.


Regards,
Gnanas
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Nov 16, 2007 5:30 pm
Reply with quote

You are welcome icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Use of long filenames with GDKUTIL ut... IBM Tools 3
No new posts Problem moving a cobol program into E... COBOL Programming 3
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:


Back to Top