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
 

 

Passing of Hexadecimal value to a COB module through PARM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Passing of Hexadecimal value to a COB module through PARM
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    Post subject: Reply to: Passing of Hexadecimal value to a COB module thro
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Apr 09, 2009 12:37 am    Post subject:
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    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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts How to get the program name of callin... pkmurali COBOL Programming 8 Mon Aug 01, 2016 3:36 am
No new posts Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm


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