Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Is JCL coding same when using cobol /pl/1 languages?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rajjesht
Warnings : 1

New User


Joined: 03 Aug 2005
Posts: 20

PostPosted: Sun Apr 02, 2006 12:49 pm    Post subject: Is JCL coding same when using cobol /pl/1 languages?
Reply with quote

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
View user's profile Send private message

new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Mon Apr 03, 2006 7:13 pm    Post subject:
Reply with quote

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
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Mon Apr 03, 2006 7:17 pm    Post subject:
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Mon Apr 03, 2006 8:12 pm    Post subject: Re: Is JCL coding same when using cobol /pl/1 languages?
Reply with quote

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
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Mon Apr 03, 2006 9:18 pm    Post subject:
Reply with quote

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
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Tue Apr 04, 2006 1:23 am    Post subject:
Reply with quote

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
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 252
Location: Cincinnati OH USA

PostPosted: Tue Apr 04, 2006 5:04 am    Post subject:
Reply with quote

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
View user's profile Send private message
rajjesht
Warnings : 1

New User


Joined: 03 Aug 2005
Posts: 20

PostPosted: Tue Apr 04, 2006 9:51 am    Post subject: Re: Is JCL coding same when using cobol /pl/1 languages?
Reply with quote

Thank you guys
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us