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
 
PARM parameters passing through PS in Compile JCL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Mon May 26, 2008 6:54 pm    Post subject: PARM parameters passing through PS in Compile JCL?
Reply with quote

Hi,

I have one requirement in COBOL compile JCL. We pass PARM parameters in compilation step as below.

//COB3 EXEC PGM=IGYCRCTL,
// COND=(4,LT),
// PARM=('LANG(UE),F(I,I),NODBCS,OFF,NOLIST',

and so on.

Since the length of PARM parameters is restricted to 100 bytes, i want to store the PARM parameters in a PS file and use it in the same compilation step like below.

//mystep dd dsn=myparm.file,disp=shr

Could you let me know how to achieve this?
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon May 26, 2008 7:12 pm    Post subject:
Reply with quote

Wouldn't that require changing the compiler to read the dataset rather than the parm?
There are other ways to Specify compiler options......
Back to top
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Mon May 26, 2008 9:32 pm    Post subject: Reply to: PARM parameters passing through PS in Compile JCL?
Reply with quote

Hi CICS GUY,

It may. I saw the similar option in PL/1 compiler. So i asked about it.
Anyways is it possible in COBOL compiler? I am having 3.4 version.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon May 26, 2008 9:50 pm    Post subject:
Reply with quote

Did you look at the link for Specifying compiler options in the Enterprise COBOL for z/OS Programming Guide Version 3 Release 3?
Back to top
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Mon May 26, 2008 9:55 pm    Post subject: Reply to: PARM parameters passing through PS in Compile JCL?
Reply with quote

Hi CICS Guy,

Yes. I looked in to it. I have already looked in to PROCESS statement but looking for the alternate solution also.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon May 26, 2008 10:02 pm    Post subject: Re: Reply to: PARM parameters passing through PS in Compile
Reply with quote

senjay wrote:
Yes. I looked in to it. I have already looked in to PROCESS statement but looking for the alternate solution also.
An alternate solution? What kind of requirement is driving that?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10373
Location: italy

PostPosted: Mon May 26, 2008 10:04 pm    Post subject: Reply to: PARM parameters passing through PS in Compile JCL?
Reply with quote

both pl/i and COBOL compilers are clear about that...

You set the options by regenerating the appropriate option modules,
You specify the option thru the "PARM" jcl keyword
You specify them thru the language "PROCESS" statement

what else are You looking for icon_question.gif
Back to top
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Mon May 26, 2008 11:02 pm    Post subject: Reply to: PARM parameters passing through PS in Compile JCL?
Reply with quote

Hi CICS Guy and enricho,

I was asked to work out on this requirement (Passing PARM parameters through PS). But I am going to propose the 'PROCESS' statement method. Just curious enough to know whether is this possible to give PARM parameters through PS file
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon May 26, 2008 11:11 pm    Post subject: Re: Reply to: PARM parameters passing through PS in Compile
Reply with quote

senjay wrote:
Just curious enough to know whether is this possible to give PARM parameters through PS file
Yes, it is posssible, but only for programs that are coded to accept them from a PS file, like Sort for one.
Since the compiler can accept the COBOL statements from a PS file, I guess that if you concatinated the PARM file (in the form of the PROCESS statements) before the COBOL statements file, you could get what you wish.
Back to top
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Mon May 26, 2008 11:13 pm    Post subject: Reply to: PARM parameters passing through PS in Compile JCL?
Reply with quote

enricho told:
Quote:

You set the options by regenerating the appropriate option modules


I couldn't get it. Could you throw more light on this?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 27, 2008 2:51 am    Post subject:
Reply with quote

Hello,

Quote:
I couldn't get it. Could you throw more light on this?
If you believe there is a real reason for all of the parms you want to specify, you should change the defult compiler options.

The PARM values are intended to override the standard settings. It sounds like your system would benefit from setting new default/standard values.
Back to top
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Tue May 27, 2008 11:53 am    Post subject: Reply to: PARM parameters passing through PS in Compile JCL?
Reply with quote

Hi Dick,

Thanks. I understood.
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
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm

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