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
 

 

Sample for how to using the PARM parameter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Sample for how to using the PARM parameter
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: 2360
Location: Israel

PostPosted: Thu Jun 05, 2008 10:41 am    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Jun 05, 2008 12:12 pm    Post subject:
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    Post subject:
Reply with quote

Hi Gerry,

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

Active Member


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

PostPosted: Thu Jun 05, 2008 5:42 pm    Post subject:
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    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 Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm


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