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

Reading the Endevor Listing (Compressed?) Using Rexx


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Tue Jul 12, 2011 3:04 pm
Reply with quote

Hi

In my current manframe shop, after an endevor listing is created and I try to view the member (program) in the listing PDS (library) it appears in the non-readable characters something like this:

Code:

IO $COMP3 BITS=.Ì°.gÊ\                               
 --                                                 
..±L~ø                                               
â.?{ë.Û..§ÿµçË«.Ü..t.xl4.Ü...£y\.S1=b.Ø             
GÂ.}Ä;..É<TËÇÜ...qå.õ{.¡ì                           
aR...;..u .éØá..Oþ..&åm@.ïb..k.eãxê°..m.\           
J¬©:(.a(=FÖ.{ÁÇa*=PÐ.#.sö                           
Jz.#Á...£í.ï.§\ae¨­ÁÁ{                               
¹ÄéçÇ...Få.ÍÌþ.¾`C!ÉK{                               
.ÿj..î.qnW{¾¹Ú.T~·.                                 
ÿB½.ÙÕ..P_U³.\                                       
E.N.e²..òbÏ@..3.                                     


When I go to endevor and view the listing it appears in readable characters. I am not sure what makes the member in the listing library appear in non-readable character.

I was trying to read the member from rexx but not able to figure out how to get the characters in readable format.

Could anyone please suggest any approach to read the listing may be through endevor (using rexx) or to read this non-readable file and make characters readable using rexx?

Thanks in advance.
Back to top
View user's profile Send private message
kgrimes

New User


Joined: 28 Sep 2009
Posts: 22
Location: Columbia, SC

PostPosted: Tue Jul 12, 2011 10:22 pm
Reply with quote

Since Endevor stores the listings in a compressed format, you will need to use Endevor or an Endevor utility to browse the listings. Depending on what you are trying to accomplish, there are several possibilities including the Endevor batch interface (C1BM3000) and the Endevor Application Programming Interface (API).

You can use the Endevor batch interface to print an Endevor listing using syntax similar to the following:
PRINT MEMBER 'XXXXXXXX' FROM DSNAME 'XXXXXXXX.LISTING'
With this method, your Rexx program could allocate all the required files, build the control statement, and then execute the Endevor batch interface to write the Endevor listing to a temporary dataset which you could then browse. On the downside, you may not be able to use this approach if you plan to execute your Rexx program while your user is already in Endevor because you will not be able to properly allocate all of the required Endevor datasets.

Another more elegant solution which you could execute from outside of Endevor and also from inside of Endevor is the Endevor Application Programming Interface. The Endevor API includes support for the PRINT MEMBER action. The Endevor API does not directly support Rexx so you would need to write a COBOL, PL1, or Assembler program to accept the parameters from your Rexx program and then call the Endevor API. Then your Rexx program could browse the output dataset from your API program.

The Endevor batch interface and the Endevor API are both documented pretty well in the Endevor documentation set and the Endevor installation libraries include some examples of each.

Kevin
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top