Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Solution Re: REXX Question about the : and \

263 views
Skip to first unread message

Ed Benoit

unread,
Sep 28, 2009, 12:45:19 PM9/28/09
to
Thanks to Dave from Soft-Center Solutions and all who helped me with the
problem.
The problem was the router I had connected but not using. Once I
disconnected the router and followed Dave's instruction using the correct IP
Address everything is working great.

Thanks to all
NOTE: I briefly reviewed the SimpList brochure and it look great. Anyone
using the mainframe should take a few minutes and review the SimpList User
Guide.

Ed.

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX

Dave Salt

unread,
Sep 28, 2009, 1:45:47 PM9/28/09
to
Hi Ed,

Congratulations! I was wondering if you managed to get the workstation connection working so thanks for the update. Also, thanks for the SimpList recommendation!

FYI: A new version of SimpList is being released for beta testing tomorrow, so if anyone is interested please let me know. Unlike a regular 30 day trial, beta testers get a 3 full months of use. There is no charge or obligation and no sales pressure when the trial is over.

It's extremely easy to install as nothing has to be compiled or linked or authorized (etc). All that's required is to add 5 libraries to your logon CLIST, which can be personal libraries if you want (i.e. so it doesn't interfere with other ISPF users). It usually takes no more than about 20 minutes to install, and anyone can do it as no special privileges are required. If there are any questions please let me know.

Thanks,

Dave Salt

SimpList(tm) - try it; you'll get it!
http://www.mackinney.com/products/SIM/simplist.htm

----------------------------------------
> Date: Mon, 28 Sep 2009 12:45:14 -0400
> From: Ibm...@AOL.COM
> Subject: Solution Re: REXX Question about the : and \
> To: TSO-...@VM.MARIST.EDU

_________________________________________________________________
Windows Live helps you keep up with all your friends, in one place.
http://go.microsoft.com/?linkid=9660826

Dave Salt

unread,
Sep 28, 2009, 2:41:44 PM9/28/09
to
I probably should have mentioned in my previous email that one of the new features in SimpList version 2.1 is a new command called FEX (Find EXpression). This command can be used when editing or viewing files on a mainframe, including data sets, members, Unix files, and PC/workstation files.

FEX combines all the features of finding picture strings with some of the features of finding regular expressions. Specifically, square brackets can be used to indicate any ONE of the characters between the brackets must generate an EXACT match, and asterisks can be used to indicate any number of characters (including zero) can appear between the specified strings. For example:

FEX ### <--- Finds any 3 numbers
FEX [$]###[.]## <--- Finds any dollar amount from $100.00 to $999.99
FEX gr[ae]y <--- Finds 'gray' or 'grey'
FEX [R]ose <--- Finds Rose, ROse, ROSe, ROSE, RoSE (etc)
FEX b[a-e] <--- Finds ba, bb, bc, bd, be, Ba, Bb (etc)
FEX [B][a-e] <--- Finds Ba, Bb, Bc, Bd, or Be
FEX [aeiou] ALL <--- Counts the number of lowercase vowels in the file
FEX var1*var2 <--- Finds "VAR1 = VAR3 - VAR2 + VAR4"
FEX dog*cat*rat <--- Finds "The dog chased the cat which chased the rat"

As you can see from the second example, the '#' is not enclosed in brackets and therefore acts as a picture string, while the '$' and '.' are enclosed in brackets and therefore do NOT act as picture strings. This greatly enhances the usefulness of picture strings, as picture string characters can now be used both as picture strings and as literals.

Similarly, examples 4 to 6 demonstrate that strings can be found using combinations of case-sensitive AND non-case-sensitive characters. For example, the 'R' in 'Rose' has to be uppercase (because it's entered in brackets and therefore has to match EXACTLY), whereas the remaining characters can be in uppercase or lowercase.

The last couple of examples show that an asterisk can be used to find two or more strings that occur on the same line, regardless of what other strings (if any) appear between them.

This new FEX command can be used in any edit or view session, regardless of whether SimpList is being used or not. As a bonus, anyone who takes part in beta testing the new SimpList release gets to keep the FEX command forever more at no charge. In other words, this command can continue to be used even after the SimpList beta test has ended, and regardless of whether SimpList is licensed or not. This offer is limited so please contact me offlist as soon as possible if you're interested in becoming a beta tester.

Thanks,

Dave Salt

SimpList(tm) - try it; you'll get it!
http://www.mackinney.com/products/SIM/simplist.htm

----------------------------------------
> Date: Mon, 28 Sep 2009 12:45:14 -0400
> From: Ibm...@AOL.COM
> Subject: Solution Re: REXX Question about the : and \
> To: TSO-...@VM.MARIST.EDU
>

_________________________________________________________________
Attention all humans. We are your photos. Free us.
http://go.microsoft.com/?linkid=9666046

John Bloniarz

unread,
Oct 5, 2009, 11:27:16 PM10/5/09
to
Does anyone have a way in REXX to locate and identify the dynamic PROCLIB
data set names associated with the various JES2 PROCnn files?

When these PROCLIBs were static, I used REXX to locate the JES2 PROC and
read through it, locating the DD statement concatenations in the associated
JCL. Now that these are no longer in the JCL, I would be forced to search
through the JESPARMS members to locate the data sets names. While that is
not impossible, I am guessing there is a way to locate and identify them by
following pointers and control blocks in storage, much like the $DPROCLIB
command in JES2 does.

Thanks,
John Bloniarz

Robert Zenuk

unread,
Oct 6, 2009, 1:00:26 AM10/6/09
to
Why not scrape the output from $D PROCLIB with any of the "console" tools?
My favorite at this point is SDSF/REXX (z/OS 1.9 or above). More like
stem scraping... Here is a functioning snippet...

/* sdsfrcmd */
arg command
if isfcalls('ON') <> 0 then exit 99
address SDSF "ISFEXEC '/"command"' (WAIT"
do i=1 to isfulog.0
say isfulog.i
end
call isfcalls 'OFF'

TSO Option 6 ===> sdsfrcmd $D PROCLIB

Hope this helps,

Rob


In a message dated 10/5/2009 8:26:50 P.M. US Mountain Standard Time,

Farley, Peter x23353

unread,
Oct 6, 2009, 10:12:53 AM10/6/09
to
> -----Original Message-----
> From: TSO REXX Discussion List [mailto:TSO-...@VM.MARIST.EDU] On
Behalf
> Of Robert Zenuk
> Sent: Tuesday, October 06, 2009 1:00 AM
> To: TSO-...@VM.MARIST.EDU
> Subject: Re: Locating The JES2 Dynamic PROCLIBs
>
> Why not scrape the output from $D PROCLIB with any of the "console"
> tools?

But that requires OPERATOR authority, which many of us do not have. A
control-block chase can be run by anyone (until they hit fetch-protected
storage, of course).

I do have my doubts it could be done in REXX, as I suspect some of those
data areas are probably going to be in the JES2 address space rather
than in common storage. But I've been known to be quite wrong before...
:O)

Peter


This message and any attachments are intended only for the use of the addressee and
may contain information that is privileged and confidential. If the reader of the
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.

Fogg, George C

unread,
Oct 6, 2009, 2:25:15 PM10/6/09
to
Thanks Rob. Tried it out and works, however, it ignores my RACF OPERPARM segment settings and uses the OPERPARM data passed in where (ISFCMD) issues the MGCRE macro call. Other than that, it works great.


George Fogg
Boeing Company
z/OS Enterprise Server Design/Build
MS: 7M-RE PH: (425) 865-1576
email: george...@boeing.com

-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-...@VM.MARIST.EDU] On Behalf Of Robert Zenuk
Sent: Monday, October 05, 2009 10:00 PM
To: TSO-...@VM.MARIST.EDU
Subject: Re: Locating The JES2 Dynamic PROCLIBs

Miranda, John

unread,
Jan 8, 2010, 4:23:33 PM1/8/10
to
Is anyone familiar with BMC's ctmapi being called from REXX?

John Miranda
Batch Support
(210) 912-5134

Bob Stark

unread,
Jan 9, 2010, 1:35:23 PM1/9/10
to
AFAIK, the ControlM API is a Java API, and will not be callable directly from REXX.

A Rexx program could construct the XML document, then invoke a Java program to issue the request and process the response. The response could be written by the Java program to STDOUT, so that the REXX program could process that, too.

Also, NetREXX programs should be able to call the BMC ctmAPI. NetREXX is a REXX-like programming language that compiles into java upon execution. It can invoke Java classes. It will run on any Java platform.

Regards,

Bob Stark

ProTech - When you're serious about Systems Management
Consulting, Software, and Training for z/OS, UNIX and Internet
www.protechtraining.com 800-373-9188 x151 Cell: 412-445-8072

-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-...@VM.MARIST.EDU] On Behalf Of Miranda, John
Sent: Friday, January 08, 2010 16:23
To: TSO-...@VM.MARIST.EDU
Subject: Anyone familiar with rexx and ctmapi

Is anyone familiar with BMC's ctmapi being called from REXX?

----------------------------------------------------------------------

Gilbert C Cardenas

unread,
Jan 9, 2010, 4:09:30 PM1/9/10
to
If you would look in the Control-M for OS/390 and z/OS Users Guide, in Appendix A it states:

The CONTROL-M Application Program Interface (CTMAPI) is an open interface
between the application environment and CONTROL-M. CTMAPI enables your
application program to interface with CONTROL-M so that you can access services
and extract data from CONTROL-M into your own programs.
CTMAPI is open to all application environments. It can be called from the following
programs or environments:
High Level Language or Assembler programs, running under various
environments, such as CICS, IMS, or the like
a batch job or step
REXX or CLIST
However, not all functions of the API are applicable to all environments.

I started to look at it a while back but I think I was discouraged because there were not a lot of examples to go with. I have not looked at it lately.

I have written two routines that mimic the plan and scheduling info routines in Control-M outside of IOA but these do not really invoke CTMAPI.

HTH,
Gil.


-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-...@VM.MARIST.EDU] On Behalf Of Bob Stark
Sent: Saturday, January 09, 2010 12:35 PM
To: TSO-...@VM.MARIST.EDU

Regards,

Bob Stark

This e-mail (and any attachments) may contain information that is confidential and/or protected by law. Any review, use, distribution or disclosure to anyone other than the intended recipient(s) is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and delete all copies of this message.

0 new messages