IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Receive PARMS in a program PLI with DB2


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
angelalpe
Warnings : 1

New User


Joined: 22 Sep 2005
Posts: 32

PostPosted: Tue Oct 25, 2005 5:39 pm
Reply with quote

Hello,

I need to know like I can receive a parameter that him passage in the JCL in a program PLI that has instructions DB2

I have proven with the following JCL but what receives the program is value &IDE and not the content that has varibale &IDE. I need to receive in program PLI-DB2 value HD061024H111111

The JCL that I have executed is:

//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

Thanks
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Tue Oct 25, 2005 6:44 pm
Reply with quote

Try assigning value to IDE in EXEC statement.
//P18RRP EXEC PGM=IKJEFT01 IDE='HD061024H111111'
Let us know if you still have problems.
Regards,
Sridevi.
Back to top
View user's profile Send private message
angelalpe
Warnings : 1

New User


Joined: 22 Sep 2005
Posts: 32

PostPosted: Tue Oct 25, 2005 8:32 pm
Reply with quote

I have assigned value to IDE in EXEC statement, but It isn't correct

//SYSNPARM SET IDE='HD061024H111111'
//P18RRP EXEC PGM=IKJEFT01,PARM='&IDE'
//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) -
LIB('USUARIO.LIB.LOADLIB')
END


It leaves the following message error

IKJ56621I INVALID COMMAND NAME SYNTAX
READY
DSN SYSTEM(DS2)
DSN
RUN PROGRAM(PRUEBA) PLAN(PRUEBA) LIB('USUARIO.LIB.LOADLIB')
DSN
END
READY
END
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Wed Oct 26, 2005 1:40 am
Reply with quote

My suggestion was(in the earlier post)to ASSIGN value to IDE in EXEC statement. It means, the code should be like...
//P18RRP EXEC PGM=IKJEFT01 IDE='HD061024H111111'
Your code shows that you are USING the value of IDE in EXEC statement.
Please give it a hit and let us know...
Regards,
Sridevi.
Back to top
View user's profile Send private message
angelalpe
Warnings : 1

New User


Joined: 22 Sep 2005
Posts: 32

PostPosted: Wed Oct 26, 2005 12:24 pm
Reply with quote

I write what you say to me and gives a syntax error in the JCL:

//PRUEBA EXEC PGM=IKJEFT01,IDE='HD061024H111111'
//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) -
LIB('USUARIO.LIB.LOADLIB')
END


The error is:
IEFC630I UNIDENTIFIED KEYWORD IDE


Regards.
Back to top
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Fri Feb 10, 2006 8:52 pm
Reply with quote

Do you really need SYSNPARM step name? I don't use it, and my JCLs run prpoerly....

// 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

Will this work?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top