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

Receive data declared in PARM parameter from JCL to COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bsenthilbalu

New User


Joined: 02 Aug 2007
Posts: 1
Location: India

PostPosted: Thu Aug 02, 2007 1:18 pm
Reply with quote

How to Receive the data that is passed from JCL using PARM parameter to COBOL?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Aug 02, 2007 1:20 pm
Reply with quote

Senthil,

Declare LINKAGE SECTION in the program.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Aug 02, 2007 1:41 pm
Reply with quote

A simple search of "parm linkage cobol" turned up Quetions in passing data through PARM.....
Back to top
View user's profile Send private message
jasorn
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Fri Aug 03, 2007 7:00 am
Reply with quote

The first 2 bytes of your linkage needs to be reserved for the length of the parm.

PIC S9(4) COMP.

Even if I don't plan to call a program from jcl, I add those two bytes just in case I want to at a later date.
Back to top
View user's profile Send private message
chavenco

New User


Joined: 24 Oct 2006
Posts: 1
Location: Brazil

PostPosted: Thu Aug 09, 2007 5:51 am
Reply with quote



LINKAGE SECTION.
01 LK-PARM.
05 LK-LEN PIC S9(04) COMP.
05 LK-DATE1 PIC 9(08).
05 LK-DATE2 PIC 9(08).
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
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 Duplicate transid's declared using CEDA CICS 3
Search our Forums:

Back to Top