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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm


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