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

REXX which can provide a listing of a COBOl Program.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vishal Jain

New User


Joined: 19 Aug 2009
Posts: 7
Location: Pune

PostPosted: Wed Aug 19, 2009 3:32 pm
Reply with quote

I am looking for a REXX, which can expand a COBOL program including all its copy statements. (similar to what we see in a listing using Changeman or Endevor)
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Aug 19, 2009 3:35 pm
Reply with quote

Please search the forum, this or something similar has been asked umpteen times before.

I can not recall what the answers were, so I'm afraid you will have to learn to search
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Aug 19, 2009 3:49 pm
Reply with quote

I concur with Expat. It's been discussed numerous times, but last I knew you'll need to write your own program.
Back to top
View user's profile Send private message
Vishal Jain

New User


Joined: 19 Aug 2009
Posts: 7
Location: Pune

PostPosted: Wed Aug 19, 2009 4:50 pm
Reply with quote

I also did a search on this.
But not able to get any matching result which can answer my query.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Aug 19, 2009 4:54 pm
Reply with quote

Quote:
but last I knew you'll need to write your own program.

As Kevin says, and I believe the same.

All those that had asked the same question may or may not have scuttled off and written their own code. If they did, they sure did not post any of it on our forum.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Wed Aug 19, 2009 6:00 pm
Reply with quote

Vishal Jain wrote:
I am looking for a REXX, which can expand a COBOL program including all its copy statements. (similar to what we see in a listing using Changeman or Endevor)


Why bother if you can just compile it and get a listing?
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Aug 19, 2009 6:03 pm
Reply with quote

Can this not be achieved using the IBM utility ISRLEMX ? Though why you'd want to invoke it from REXX eludes me.....

Google ISRLEMX to find details on using this.

Garry.
Back to top
View user's profile Send private message
Vishal Jain

New User


Joined: 19 Aug 2009
Posts: 7
Location: Pune

PostPosted: Thu Aug 20, 2009 11:14 am
Reply with quote

If my changeman is down and I want to view listing of anyh component, then this REXX will help me a lot.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Thu Aug 20, 2009 12:29 pm
Reply with quote

Quote:
If my changeman is down and I want to view listing of anyh component, then this REXX will help me a lot.


That's as may be, but what's wrong with running a batch job to execute ISRLEMX? If you need to manipulate the output, you can output it to a dataset or capture the output from (e.g.) SDSF. You could even pass the output to a compile step.

If you really need to, you could invoke ISRLEMX from REXX. There are many examples of invoking programs from REXX in the forum.

Garry.
Back to top
View user's profile Send private message
Vishal Jain

New User


Joined: 19 Aug 2009
Posts: 7
Location: Pune

PostPosted: Thu Aug 20, 2009 12:43 pm
Reply with quote

ok. Thanks Garry.. Let me first try ISRLEMX.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 20, 2009 2:26 pm
Reply with quote

Do you've workbench available at your shop? You can compile your Cobol program through that if change man is down and then look at the listing generated there.
Back to top
View user's profile Send private message
Vishal Jain

New User


Joined: 19 Aug 2009
Posts: 7
Location: Pune

PostPosted: Thu Aug 20, 2009 2:28 pm
Reply with quote

no we don't have workbench available.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Aug 20, 2009 2:40 pm
Reply with quote

Holy sith, why go through all this effing trouble? icon_evil.gif

Just take a copy of the ChangeMan JCL, cut out everything that updates ChangeMan libs and use that... icon_idea.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 20, 2009 2:56 pm
Reply with quote

prino wrote:
Just take a copy of the ChangeMan JCL, cut out everything that updates ChangeMan libs and use that... icon_idea.gif
I believe that won't work Robert -- change man libraries are, usually, not allowed to update by some RACF ID. When I try to do that, JCL syntax chekcer says
Code:
==MSG> .JAAN     8 DSS4757E - UPDATE ACCESS TO DATA SET DENIED TO USER XX1234X
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Aug 20, 2009 3:34 pm
Reply with quote

Anuj Dhawan wrote:
prino wrote:
Just take a copy of the ChangeMan JCL, cut out everything that updates ChangeMan libs and use that... icon_idea.gif
I believe that won't work Robert -- change man libraries are, usually, not allowed to update by some RACF ID. When I try to do that, JCL syntax chekcer says
Code:
==MSG> .JAAN     8 DSS4757E - UPDATE ACCESS TO DATA SET DENIED TO USER XX1234X


Did you not read what I now emphasized in red?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 20, 2009 5:25 pm
Reply with quote

icon_redface.gif my mistake, percepted your response other way round.

Thanks,
Anuj
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 Aug 20, 2009 8:44 pm
Reply with quote

Hello,

Quote:
If my changeman is down
And this happens regularly?

Suggest that needs to be resolved rather than developng work-arounds. . .
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Aug 20, 2009 8:53 pm
Reply with quote

well changeman could be down due to corrupted data via usage of REXX scripts outside of the changeman/endevor environement.
Back to top
View user's profile Send private message
Vishal Jain

New User


Joined: 19 Aug 2009
Posts: 7
Location: Pune

PostPosted: Fri Aug 21, 2009 9:16 am
Reply with quote

Quote:
If my changeman is down


Not every time, But sometimes changeman takes 1-2 hrs to get up and working (this might be due to some maintenance)
Back to top
View user's profile Send private message
Vishal Jain

New User


Joined: 19 Aug 2009
Posts: 7
Location: Pune

PostPosted: Fri Aug 21, 2009 9:19 am
Reply with quote

Quote:
well changeman could be down due to corrupted data via usage of REXX scripts outside of the changeman/endevor environement.


What I wana do is, we already have LST libraries when we compile a program, my REXX should decode and provide me the lilsting. Not sure who come changeman will get corrupted due to this.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top