Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 154
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
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us