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
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts DUMMY When do I need add a DCB parameter Martylin JCL & VSAM 3 Fri Dec 08, 2017 7:20 am
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm

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