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
 

 

EXEC with multiple parameters

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

New User


Joined: 11 Dec 2005
Posts: 12
Location: Lima-Per?

PostPosted: Fri Aug 11, 2006 3:45 am    Post subject: EXEC with multiple parameters
Reply with quote

Can have multiple parameter in EXEC of JCL?

Exampl?:
JCl
=====
//...
//STEP001 EXEC PGM=PROG1, PARM=('VAL1','VAL')
//...

PROG1
======
...
LINKAGE SECTION.
01 VAR1 PIC X(30).
01 VAR2 PIC X(10).

PROCEDURE DIVISION USING VAR1 , VAR2.
DISPLAY 'VALUE1 ', VAR1
DISPLAY 'VALUE2 ', VAR2.

...

But display:
VALUE1 VAL1,VAL2
VALUE2
Why?

How display
VALUE1 VAL1
VALUE2 VAL2


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

Gautam512

Active User


Joined: 05 Oct 2005
Posts: 309
Location: Vizag / US

PostPosted: Fri Aug 11, 2006 4:19 am    Post subject: Re: EXEC with multiple parameters
Reply with quote

hi,
yes we can have.

regarding display can you be a bit more clear about ur question...
Back to top
View user's profile Send private message
ovasquez

New User


Joined: 11 Dec 2005
Posts: 12
Location: Lima-Per?

PostPosted: Fri Aug 11, 2006 4:28 am    Post subject:
Reply with quote

I'd like display parameters :
DISPLAY 'VALUE 1 :', VAR1
DISPLAY 'VALUE 2 :', VAR2.

But display(in spool):
VALUE 1 :VAL1,VAL2

y don't display:
VALUE 1 :VAL1
VALUE 2 :VAL2

Why?

What is mistake in my programer?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Aug 11, 2006 6:12 pm    Post subject:
Reply with quote

Hi Ova,

You're almost there. Just one small correction:

Instead of
Code:

LINKAGE SECTION.
01 VAR1 PIC X(30).
01 VAR2 PIC X(10).

Use this:
Code:

LINKAGE SECTION.
01 parm-ip.
05 parm-len pic 9(004) comp.
05 VAR1 PIC X(30).
05 parm-comma pic x.
05 VAR2 PIC X(10).

The parm fild requires a def for the parm length that's supplied by the sysyem. Also the comma is also presented to your pgm so you have to define it (you could use FILLER).
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 Match two files using multiple keys a... santoshks1987 SYNCSORT 10 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm


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