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
 

 

But the JCL is not using any parm parameter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
srinivasraviprolu

New User


Joined: 08 Jan 2004
Posts: 2
Location: Hyderabad

PostPosted: Fri Feb 06, 2004 6:48 pm    Post subject: But the JCL is not using any parm parameter
Reply with quote

HI

The program is coded like this
01 WL-001-PARAMETER-AREA.
05 WL-001-PARM-LENGTH
BINARY PIC S9(4).
05 WL-001-PARM-RPT PIC X(5).

PROCEDURE DIVISION USING WL-001-PARAMETER-AREA

But in the JCL he is not using any parm parameter
he is excuting the proc whether it will run successfully if so i would like to know how it will work

can anybody pl ...give me reply

***EMail ID REMOVED... Use CODE tag to include mail id***
Back to top
View user's profile Send private message

bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Fri Feb 06, 2004 6:58 pm    Post subject:
Reply with quote

I don't understand exactly what is our question.

The using clause appended on procedure division tells the pgm that
we are using the afore (in program ) defined in DATA DIVISION as
01 WL-001-PARAMETER-AREA.

and the code you're showing is only part of the pgm.
if you want an explanation of what pgm does post the whole code !!!
there is no instructions (after procedure division line).
Back to top
View user's profile Send private message
srinivasraviprolu

New User


Joined: 08 Jan 2004
Posts: 2
Location: Hyderabad

PostPosted: Fri Feb 06, 2004 7:11 pm    Post subject:
Reply with quote

Hi Bluebird

I mean without using PARM in JCL can we excute the program
actualy it is getting the report number from this parm,
of course the value of the PARM will be moved to report
my question can we excute it with out mentioning about the PARM in JCL

Thankyou
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Feb 07, 2004 1:03 am    Post subject:
Reply with quote

Hi Srini,

The ans to your ques is "maybe". You have to look at the pgm logic. For example, if the code has this stmt you may be able to correctly print a report even if the PARM wasn't provided in the JCL.
Code:

IF WL-001-PARM-LENGTH        = ZERO
    MOVE 'default-pgm-name' TO RPT-HDG-NAME
ELSE
    MOVE WL-001-PARM-RPT    TO RPT-HDG-NAME
END-IF

Regards, Jack.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


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