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
 
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
This topic is locked: you cannot edit posts or make replies. ISREDIT Macro is not returning back t... nico_neoz CLIST & REXX 21 Sat Nov 18, 2017 7:40 pm
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts Updating multiple counts in trailer!! Vignesh Sid SYNCSORT 4 Mon Nov 06, 2017 1:04 pm
No new posts Selecting a row from multiple tables! Vignesh Sid DB2 2 Thu Oct 26, 2017 6:09 pm
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am

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