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
 

 

How to pass '/ 'as PARM to COBOL in a JCL avoiding SYSOUT m?

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

New User


Joined: 06 Jul 2005
Posts: 26
Location: Chennai

PostPosted: Thu Jul 07, 2005 2:12 pm    Post subject: How to pass '/ 'as PARM to COBOL in a JCL avoiding SYSOUT m?
Reply with quote

We are trying to pass the date 02/04/05 to COBOL from JCL.
We tried
1. PARM='02/04/05'
2. PARM=(02/04/05)
2. PARM=&EFFDT

etc...

But the program ran fine, but in the SYSOUT it is throwing out message that 05 (last 2 bytes) is not a valid run type options.

We want to avoid the message. So if any one of u have come accross please let me know...
Back to top
View user's profile Send private message

rssomm

New User


Joined: 05 Jun 2005
Posts: 41
Location: Hyderabad

PostPosted: Fri Jul 08, 2005 8:42 pm    Post subject:
Reply with quote

What is the pic clause of the variable reecving this date thru PARM?
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Fri Jul 08, 2005 9:36 pm    Post subject: Re: How to pass '/ 'as PARM to COBOL in a JCL avoiding SYSOU
Reply with quote

Hi withnams,

Please check ur PIC Clause> My it contain only 6 char length.
Back to top
View user's profile Send private message
jayesh_g

New User


Joined: 03 Mar 2004
Posts: 24

PostPosted: Sat Jul 09, 2005 11:10 pm    Post subject: Re: How to pass '/ 'as PARM to COBOL in a JCL?
Reply with quote

In PARM, '/' has a special significance. It delineates the program arguments from the run-time options. In your case, it is
Code:
PARM='program-arguments/run-time-options'
The last slash in a string delineates the program arguments from the run-time options. Anything before the last slash is interpreted as a program argument.

So don't use '/' in PARM icon_smile.gif
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Sun Jul 10, 2005 1:12 am    Post subject: Re: How to pass '/ 'as PARM to COBOL in a JCL avoiding SYSOU
Reply with quote

I want to add some more to what jayesh_g said,

Quote:
Anything before the last slash is interpreted as a program argument.


This is true so, why not end the PARM with a '/' and you wont get the SYSOUT message. Ofcourse the program would run fine irrespective of the SYSOUT message. I was able to avoid the SYSOUT message by doing this.
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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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