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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 463

PostPosted: Fri Jul 08, 2005 9:36 pm
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: 23

PostPosted: Sat Jul 09, 2005 11:10 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top