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
 

 

How to convert REXX program into object code/ load module.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
prahalad

New User


Joined: 14 Sep 2010
Posts: 18
Location: Pune

PostPosted: Mon Jan 03, 2011 6:30 pm    Post subject: How to convert REXX program into object code/ load module.
Reply with quote

I want to convert Rexx program into object code/load module.

It will help to protect the Rexx code from other people from making unauthorized changes to the programs.

I will distribute the Rexx program in the form of object code/load module. So other people are not able to change the code.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Jan 03, 2011 6:39 pm    Post subject: Reply to: How to convert REXX program into object code/ load
Reply with quote

why not look Yourself at
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/EAUGB10
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 645
Location: Pennsylvania

PostPosted: Mon Jan 03, 2011 8:52 pm    Post subject:
Reply with quote

What I do to protect the Rexx code is to place it in a Library that the user community has read only access to.

Only authorized people have update access. This allows easy access to changes when necessary.

This library either needs to be allocated in the general logon proc, or be able to altlib to, or do an alter of their syspproc dd.

Just another option to consider.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Mon Jan 03, 2011 9:36 pm    Post subject:
Reply with quote

At one of my shop, we were able to compile REXX using ChangeMan and then it was distributed to the libraries. Check if your CM-tools are modified to have this capability.
Back to top
View user's profile Send private message
prahalad

New User


Joined: 14 Sep 2010
Posts: 18
Location: Pune

PostPosted: Tue Jan 04, 2011 11:13 am    Post subject:
Reply with quote

Thanks for your help.

enrico-sorichetti:
I gone through the link provided by you. But it seems to me, first of all my shop need to purchase REXX compiler. Can you please let me know without purchasing it, can I complie it?

Anuj Dhawan:
At my shop, changeman is not present.
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: Tue Jan 04, 2011 11:31 am    Post subject:
Reply with quote

Hello,

Quote:
I gone through the link provided by you. But it seems to me, first of all my shop need to purchase REXX compiler. Can you please let me know without purchasing it, can I complie it?
Hard to believe this has been asked. . .

If you have no compiler, how might you compile . . . icon_confused.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Tue Jan 04, 2011 3:27 pm    Post subject:
Reply with quote

prahalad wrote:
At my shop, changeman is not present.
Well, I just gave you a hint - that does not mean you'll necessarily look for only Change Man. What CM-Tool do you use - enquire if the compilation of REXX code is supported in that? And as Dick says, how do you compile your COBOL-programs at first place?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Jan 04, 2011 4:05 pm    Post subject: Reply to: How to convert REXX program into object code/ load
Reply with quote

Quote:
Can you please let me know without purchasing it, can I complie it?
36_2_18.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Jan 04, 2011 4:28 pm    Post subject: Reply to: How to convert REXX program into object code/ load
Reply with quote

what is that You want to protect? the code, the process, the resources !
in any case Your approach will face lot of effort with little success!

the code/process is already protected inside/outside Your organization by the current IP/copyright regulations

the resources accessed can/should be protected using the security product in place

if there is enough <return> anybody with the proper authorizations can rewrite a modified process
(without the need to look at Your precious code)

hiding/compiling the code will simply make the task a bit more difficult
reverse engineering REXX compiled code is difficult, but not that much!
( will not get an out of the box source, but close enough )
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Tue Jan 04, 2011 5:46 pm    Post subject:
Reply with quote

If you want to protect the source code from being inspected or copied by external customers, use a compiled language instead, preferably one for which you already have the neccessary development environment infrastructure in place.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Jan 04, 2011 6:07 pm    Post subject:
Reply with quote

Kjeld wrote:
If you want to protect the source code from being inspected or copied by external customers, use a compiled language instead, preferably one for which you already have the neccessary development environment infrastructure in place.


What he said!
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 645
Location: Pennsylvania

PostPosted: Tue Jan 04, 2011 6:34 pm    Post subject:
Reply with quote

One of the reasons I like to code in Rexx is that it does not need to be compiled.

I like the instant gratification of change a line of code and see the result.

In all my years of coding Rexx, I rarely felt the need to compile the code.

When I have, it was not for protection reasons, but for performance.

With those cases, I chose to write the application in Cobol instead.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 641
Location: Whitby, ON, Canada

PostPosted: Tue Jan 04, 2011 8:03 pm    Post subject:
Reply with quote

Well, I suppose you could encrypt the Rexx source and decrypt it at execution time, but that's just dumb.

On the contrary, Rexx users should be encouraged to experiment with the source code. As long as they cannot update the production version, they should have the freedom to do what they wish (short of stealing the code and selling it, of course).
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Tue Jan 04, 2011 8:14 pm    Post subject: Re: How to convert REXX program into object code/ load modul
Reply with quote

prahalad wrote:
I want to convert Rexx program into object code/load module.

It will help to protect the Rexx code from other people from making unauthorized changes to the programs.

I will distribute the Rexx program in the form of object code/load module. So other people are not able to change the code.
Okay, when I re-read your request, two things come to mind:

1. Are you writing some REXX for your own use?
2. Are you writing some REXX, to be used by a user community?

If first is the case, why not create them in a PDS having your RACF-IS as HLQ?

If second is the case, you and your team needs to some to an agreement where your code is some common library and everyone can access to it. However, if it is for the user-community - it will be installed/distributed to general logon proc -- so why such a question at first place?
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Tue Jan 04, 2011 9:12 pm    Post subject: Reply to: How to convert REXX program into object code/ load
Reply with quote

If you are writing code for commercial distribution, consider actually purchasing the rexx compiler.

==============

I recall my peers on VM having something called 'oneline'. I was a program that took a rexx exec and removed comments and blank lines, and also concatentated all of the rexx instructions, separated by semi-colons, into a single line. I think it was intended to help with performance, but might also be used to hide somewhat the workings of the exec.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Jan 04, 2011 9:17 pm    Post subject: Reply to: How to convert REXX program into object code/ load
Reply with quote

Quote:
I recall my peers on VM having something called 'oneline'. I was a program that took a rexx exec and removed comments and blank lines, and also concatentated all of the rexx instructions, separated by semi-colons, into a single line. I think it was intended to help with performance, but might also be used to hide somewhat the workings of the exec.

it wouldn ' t take that long to do reverse,
not even have to write a single line of code
there are a lot of REXX reformatters around!
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: Tue Jan 04, 2011 10:06 pm    Post subject: Reply to: How to convert REXX program into object code/ load
Reply with quote

Hi Pedro,

Quote:
but might also be used to hide somewhat the workings of the exec.
Or to make it inconvenient to "play with" the code. . . icon_cool.gif

d
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


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