View previous topic :: View next topic
|
Author |
Message |
rajjesht Warnings : 1 New User
Joined: 03 Aug 2005 Posts: 20
|
|
|
|
Hello
can anyone tell me suppose if i am using pl/1 language .How to code the JCL .Is it similar to coding using a cobol language or there are any major changes i have to make , so plz anyone can help me by providing what are the major changes required in JCL when using pl/1 language. |
|
Back to top |
|
|
new2cobol
New User
Joined: 04 Jan 2006 Posts: 77 Location: Bangalore
|
|
|
|
Yes the JCL is different while you execute a PLI program...
In COBOL you can execute the load module by directlu giving its name in the EXEC, in JCL you execute by giving it as a parameter to the SYSTSIN step of a job which executes HEWL(I am not sure of this? Am I wrong?) or IKJEFT01...
This is a JCL I found in the forum...
//SYSNPARM SET IDE='HD061024H111111'
//P18RRP EXEC PGM=IKJEFT01
//STEPLIB DD DSN=USUARIO.LIB.LOADLIB,DISP=SHR
//DBRMLIB DD DSN=USUARIO.LIB.DBRMLIB,DISP=SHR
//DSNTRACE DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//PLIDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(DS2)
RUN PROGRAM(PRUEBA) PLAN(PRUEBA) PARM(&IDE)-
LIB('USUARIO.LIB.LOADLIB')
END
Apologies to angelalpe, as I didn't ask her permission to post this JCL.... |
|
Back to top |
|
|
new2cobol
New User
Joined: 04 Jan 2006 Posts: 77 Location: Bangalore
|
|
|
|
I guess the JCL is self-explanatory but still...
Forget the SYSNPARM step, its just a set.
In the SYSTSIN step
DSN - your DB2 ssid
PROGRAM - the name of your load
PLAN - DB2 Bind plan name
PARM - parameter which you are passing to the program... |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Personally, I don't understand the question. JCL (and the entire operating system for that matter) doesn't really care what language a load module is written in. Isn't PLI just another compiled language like COBOL or Assembler or C++? |
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
hy rajjesht,
there is no difference.
for the jcl it doesn't matter which kind of programming language you used
to create the executable load.
if the program is executable, it will execute that program...
martin9 |
|
Back to top |
|
|
new2cobol
New User
Joined: 04 Jan 2006 Posts: 77 Location: Bangalore
|
|
|
|
But superk and martin9,
I wasn't able to execute my pli load module with a simple EXEC PGM= !!!
That is when a colleague advised me to use thias format. Now you guys are more experienced, and I may stand corrected... |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
does the program use DB2? Looks like it does from your jcl example. if so, that's why it runs via tso batch. |
|
Back to top |
|
|
rajjesht Warnings : 1 New User
Joined: 03 Aug 2005 Posts: 20
|
|
|
|
Thank you guys |
|
Back to top |
|
|
|