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
 
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: 965
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 Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm

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