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

How to pass Parm parameters to Cobol


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Wed Dec 07, 2005 12:35 pm
Reply with quote

Hi,

Using PARM parameter, am passing 2 values to Cobol program.
In linkage section in cobol, how to define these variables to recive more than one PARM values.

Explain me in how to define PARM in JCL as well as corresponding linkage section in COBOL.

Kindly help me out this..
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Wed Dec 07, 2005 12:56 pm
Reply with quote

Declare parm length and data in linkage section.

Code:
LINKAGE SECTION.

01 PARM-VALUES.

   10 PARM-LENGTH                    PIC S9(4) 
                             COMPUTATIONAL.       
   10 PARM-DATA.                               
       15 parm-1               PIC X(01). 
       15 parm-2               PIX X(10).

PROCEDURE DIVISION USING PARM-VALUES.


Quote:

Explain me in how to define PARM in JCL


Code:
//AAA05    EXEC PGM=pgm name,             
//            PARM='B1234567890',
//            COND=(0,NE)               



hope this helps.
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Wed Dec 07, 2005 1:02 pm
Reply with quote

Thank u! its workin fine..
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
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 COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top