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

Sample for how to using the PARM parameter


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
daye.Zheng

New User


Joined: 15 Feb 2008
Posts: 22
Location: China

PostPosted: Thu Jun 05, 2008 10:27 am
Reply with quote

Hi all,

Anybody could give me a detailed sample for how to using the PARM
parameter.

Thank you!
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jun 05, 2008 10:41 am
Reply with quote

It's all in the fine manual (guess what - even examples...)

O.
Back to top
View user's profile Send private message
daye.Zheng

New User


Joined: 15 Feb 2008
Posts: 22
Location: China

PostPosted: Thu Jun 05, 2008 10:52 am
Reply with quote

Hi ofer71.

Thank you for your reply.

I have read the manual you posted, but i still do not konw how the program recieve the 'pram' that PARM parameter passed.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Jun 05, 2008 12:12 pm
Reply with quote

Hi,
assuming it's a COBOL program here is an example of the JCL

Code:
//MATCH    EXEC PGM=ALLDUP,PARM='003,010'





Here is an example in the source code
Code:
LINKAGE SECTION.                                           
01  PARM-AREA.                                             
    03  PARM-LENGTH                   PIC S9(4) COMP.     
    03  PARM-START                    PIC 9(3).           
    03  FILLER                        PIC X.               
    03  PARM-END                      PIC 9(3).           
EJECT                                                     
PROCEDURE DIVISION USING PARM-AREA.                       


This from someone who has minutely dabbled in Cobol language.



Gerry
Back to top
View user's profile Send private message
daye.Zheng

New User


Joined: 15 Feb 2008
Posts: 22
Location: China

PostPosted: Thu Jun 05, 2008 12:22 pm
Reply with quote

Hi Gerry,

Thank you so much!
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Thu Jun 05, 2008 5:42 pm
Reply with quote

Note that it's up to you to parse/edit the PARM value.

You might want to check the length for validity. In Gerry's example above, if you really expect a comma in position 4, it'll be up to you to check that, too. etc. etc. etc.
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 JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
Search our Forums:

Back to Top