Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to pass parameters from JCl to PL1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Thu Feb 21, 2008 12:49 pm    Post subject: How to pass parameters from JCl to PL1
Reply with quote

Hi,

Please let me know how to pass parameters from JCL to PL1. For that how we should define receving parameters in PL1.
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Thu Feb 21, 2008 1:24 pm    Post subject: Reply to: How to pass parameters from JCl to PL1
Reply with quote

Please search first.

See this previous topic.
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Thu Feb 21, 2008 3:38 pm    Post subject: Reply to: How to pass parameters from JCl to PL1
Reply with quote

Thanks..!

I tried but getting error in compilation..Help me to solve this,

My program is :

TST1: PROC(PARM) OPTIONS(MAIN) REORDER;
DCL PARM CHAR(100) VAR;
PUT SKIP LIST(PARM);
END TST1;

Error is


SEVERE AND ERROR DIAGNOSTIC MESSAGES

IEL0570I S 2 'BYVALUE' PARAMETER 'PARM' MUST BE EITHER SCALAR POINTER ORR EAL FIXED BINARY(31,0).

WARNING DIAGNOSTIC MESSAGES

IEL0569I W 1 PARAMETER TO MAIN PROCEDURE CONFLICTS WITH THE SYSTEM COMPILER OPTION SPECIFICATION.
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Thu Feb 21, 2008 9:26 pm    Post subject:
Reply with quote

Declare PARM as pointer since OPTIONS(BYVALUE) is in effect.

Please correct me if I am wrong.
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Fri Feb 22, 2008 3:50 pm    Post subject: Reply to: How to pass parameters from JCl to PL1
Reply with quote

Thanks.. It worked..
How to pass more than one parameter value..
I need to pass two values like value1 and value2.

'
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Fri Feb 22, 2008 4:52 pm    Post subject:
Reply with quote

Only one PARM value can be passed. But you can pass two values in one with delimiter.

Substring the PARM in program into two(in your case).

Or use input file as values grow.
Back to top
View user's profile Send private message
roopannamdhari
Warnings : 1

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Mon Mar 24, 2008 3:15 pm    Post subject:
Reply with quote

What does this 'BYVALUE' stand for?
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Mon Mar 24, 2008 3:51 pm    Post subject:
Reply with quote

This info is from MVS QW.

When you specify BYVALUE, compiler puts the value of the argument in the parameter list.

When you specify BYVALUE, a dummy argument is not created; however, as is also true for dummy arguments, any change to the corresponding parameter in the called routine will not be visible in the calling routine.

BYVALUE can be specified only for scalar arguments and parameters that have lengths and sizes known at compile time.

Please see about BYADDR to contrast with BYVALUE.
Back to top
View user's profile Send private message
roopannamdhari
Warnings : 1

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Mon Mar 24, 2008 3:54 pm    Post subject:
Reply with quote

Thank you .......
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us