Page 1 of 2

rexx program to load module

PostPosted: Mon Jan 17, 2011 12:00 pm
by jaggz
Hi,

I had an objective of converting a rexx program to a load module. The below JCL yielded SOC4 error, though all the parameters were correct.

000100 //xxxxxxx$ JOB MSGCLASS=X,MSGLEVEL=(1,1),CLASS=B,
000200 // REGION=5M,NOTIFY=&SYSUID,TIME=1
000300 //*JOBPARM LINES=999999,PAGES=999999
000400 //*
000500 //*---------------------------------------------*
000600 //* BATCH JCL TO SUBMIT THE REXX TOOL
000700 //*---------------------------------------------*
000800 //RUNREXX EXEC PGM=IKJEFT1B,DYNAMNBR=30,PARM=TOOLNAME
000900 //STEPLIB DD DSN=YOUR.PDS.WHERELOAD,DISP=SHR
001000 //SYSTSPRT DD SYSOUT=*
001100 //SYSPRINT DD SYSOUT=*
001200 //SYSOUT DD SYSOUT=*
001300 //RPTFILE DD SYSOUT=*
001400 //SYSTSIN DD DUMMY
001500 /*

Please guide me incase if i have gone wrong. Due to Confidentiality i have changed some names in the JCL.

Thanks in advance for your assistance.

Re: rexx program to load module

PostPosted: Mon Jan 17, 2011 12:03 pm
by dick scherrer
Hello,

How did you intend to convert this rexx code to a load module?

You haven't shown anythning. . .

Possibly i misunderstand. . . :?

Re: rexx program to load module

PostPosted: Mon Jan 17, 2011 12:39 pm
by jaggz
Here Just I have used a JCL to convert a rexx programs to a load moduile which is stored in a PDS. Here in shop we have some home grown tools written in REXX and CLIST. Now we have intended to sell this tools in load module format rather than giving them as a source code. Please share your idea.

Re: rexx program to load module

PostPosted: Mon Jan 17, 2011 1:23 pm
by enrico-sorichetti
Now we have intended to sell this tools in load module format rather than giving them as a source code.


It would be worth for Your organization to revisit the intent,
when You sell software You MUST also provide support using inside skills

starting a software company asking on a forum how to debug an issue is just the worst way to do it...

when a customer reports a problem what are You going to do ...
tel them to wait a minute so that You can ask on a forum how to solve it :? :evil:

and anyway You just whined that something got an abend, nothing more!
what do You want us to do with the nothing you have provided

my idea is that Your organization should refrain from the intent until it has acquired the proper inside skills

anyway the process on how to build a REXX compiled <thing>
is clearly described in the REXX compiler manuals!
and if You follow properly the process everything should work as planned/described

now back to Your issue...
check line 8 of Your rexx script
the 3rd dd statement of Your compilation procedure
turn off the air conditioning
install a trap under Your desk so that the rats will stop chewing Your cables
clean the screen to see better what is going on
fix all the issues between the chair and the keyboard
...
zillions of other technically correct but useless suggestions

Re: rexx program to load module

PostPosted: Mon Jan 17, 2011 7:29 pm
by stevexff
At the risk of adding to the flames, can you post the name of the proposed product? We periodically go through a process where our'world-class, best of breed' (i.e. cheapest) support tools are 'evaluated' by our bean counters; I want to know what to avoid in future... :(

Re: rexx program to load module

PostPosted: Mon Jan 17, 2011 8:38 pm
by enrico-sorichetti
Naah :D You are not adding anything

around these forum, the most common reason(s) for flaming are ...

I did something, I got an abend, tell me what to do
(without any reasonable additional info)

followed by ... I got <this> <message> what should I do?

this topic does not escape the rules

cheers
enrico

Re: rexx program to load module

PostPosted: Tue Jan 18, 2011 12:51 am
by NicC
As far as I can see (I only did a quick Google on IKJEFT1B) IKJEFT1B is for executing Rexx code, not load modules. You execute a load module created from Rexx code the same way as you execute any other load module - EXEC PGM=loadmodulename

Re: rexx program to load module

PostPosted: Tue Jan 18, 2011 9:04 am
by jaggz
stevexff/NicC/Dick,

I understand the way I have posted was not that descriptive. Apology for the inconvenience. Much Appreciated for your matured approach in making me realize the mistake.

Thanks again for your response.

Re: rexx program to load module

PostPosted: Tue Jan 18, 2011 1:11 pm
by stevexff
NicC

IKJEFT1B is roughly the same as IKJEFT01, with the exception that the RC from the last command gets returned as the step return code. So if you run (say) a REXX procedure and exit 16 due to an error, you can make subsequent JCL steps conditional on the RC and/or have it detected by the scheduling software.

IKJEFT01 handles the error, and always gives RC=0, so you can't tell if the REXX worked or not.

Re: rexx program to load module

PostPosted: Wed Jan 19, 2011 2:05 am
by NicC
Yeah, I know. I only posted what was relevant to the original post.