of file tailoring?
I would like to see, end-to-end, working, code,
where a basic REXX, modifies and submits, a basic JCL skeleton.
I've been through the forum, I've been through the network,
I've been through the IBM ASM example manuals etc.
I've even found some online examples.
I just cant seem to make it work.
I'm not necessarily looking for a fix to my code.
any other basic example would also work.
Just the most basic "HelloWorld" working skeleton example.
I assume I'm failing the actual tailoring bit,
but at this point.. I'm just tired.
first - a jcl calling a basix rexx.
MY.DSN.PROJ.NAME(MAINJCL)
//RZVRX00 ..and the rest of the jobcard..
//*=======|============================================================
//* Run REXX
//*=======|============================================================
//RUNPRG EXEC PGM=IKJEFT01,REGION=0M
//SYSEXEC DD DSN=MY.DSN.PROJ.NAME,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
%SKLTRX01
/*
so far - so good.
now the rexx, that changes the skeleton
MY.DSN.PROJ.NAME(SKLTRX01)
/* REXX */
say "Hello Skeleton! "
/* pass params.. */
USR = "RazVrx"
NUM = 36
PARAM = "tester52"
/* tailor jcl */
/* SKLT001 is the DS member name . */
"ISPEXEC FTOPEN"
"ISPEXEC FTINCL SKLT001"
"ISPEXEC FTCLOSE"
ADDRESS TSO
"SUB '"MY.DSN.PROJ.NAME"("SKLT001")'"
exit 0
and finaly, the skeleton -
MY.DSN.PROJ.NAME(SKLT001)
//&USR.01 ..the rest of the jobcard..
// NOTIFY=&USR
//*=======|============================================================
//* HELLO WORLD JCL SKELETON
//*=======|============================================================
//STEP0001 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *
HELLO, &PARAM, number &NUM
/*
//SYSUT2 DD SYSOUT=*
//*=======|========================[]==================================
I don't think i can get it more simple than that.
Something just.. doesn't work.