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

PARM parameters passing through PS in Compile JCL?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2146
Location: At my coffee table

PostPosted: Mon May 26, 2008 7:12 pm
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
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: 2146
Location: At my coffee table

PostPosted: Mon May 26, 2008 9:50 pm
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
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: 2146
Location: At my coffee table

PostPosted: Mon May 26, 2008 10:02 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon May 26, 2008 10:04 pm
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
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: 2146
Location: At my coffee table

PostPosted: Mon May 26, 2008 11:11 pm
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
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

Moderator Emeritus


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

PostPosted: Tue May 27, 2008 2:51 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts C Compile time time stamps Java & MQSeries 10
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
Search our Forums:

Back to Top