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

Passing of Hexadecimal value to a COB module through PARM


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
himanshupant

New User


Joined: 21 Mar 2007
Posts: 46
Location: India

PostPosted: Wed Apr 08, 2009 2:03 pm
Reply with quote

Hi

How do we pass a hexadecimal value through a JCL PARM to cobol module ?


I tried something like

//GO EXEC PGM=RANDOM1,PARM=X'00220A'


But its giving JCL error as

IEFC629I INCORRECT USE OF APOSTROPHE ON THE EXEC STATEMENT
Back to top
View user's profile Send private message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Wed Apr 08, 2009 2:27 pm
Reply with quote

himanshupant,
Why dont you pass the Value through a file(containing the Hexadecimal value).
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Apr 08, 2009 6:46 pm
Reply with quote

If using ISPF EDIT, you can 'HEX ON' to enter the value for the PARM on the hex data lines within single quotes.
Code:
//   PARM='   '
66444DCDD770207
110007194ED02AD
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Apr 08, 2009 8:42 pm
Reply with quote

If you use Bill's suggestion, it would be nice to include a comment to the effect of "parm consists of a hex value" or something similar to warn others.
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: Thu Apr 09, 2009 12:37 am
Reply with quote

Hello,

Something that would be easily maintainable would be to simply put the value in the parm and then change it to the corresponding hex value in code. . .

If this is a one-time requirement i'd use the hex-on edit, but if it was to be changed and run regularly, i'd do this in code. fwiw icon_smile.gif
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 JCL EXEC PARM data in C Java & MQSeries 2
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
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Passing SYSPRINT to Invoked Program PL/I & Assembler 9
Search our Forums:

Back to Top