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
 

 

Receive data declared in PARM parameter from JCL to COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Receive data declared in PARM parameter from JCL to COBOL
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: 1439
Location: Bangalore,India

PostPosted: Thu Aug 02, 2007 1:20 pm    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Aug 02, 2007 1:41 pm    Post subject:
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

Active User


Joined: 12 Jul 2006
Posts: 153
Location: USA

PostPosted: Fri Aug 03, 2007 7:00 am    Post subject:
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    Post subject: EXAMPLE
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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