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
 

 

[Solved]Passing values from JCL.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
t1nt1n

New User


Joined: 08 Jul 2005
Posts: 31

PostPosted: Thu Aug 04, 2005 7:25 pm    Post subject: Passing values from JCL.
Reply with quote

Hello

We generally pass values from JCL to COBOL program thru either PARM or SYSIN card. If we pass through PARM, we receive thru LINKAGE section. How do we receive DATA in a COBOL program if we send thru' SYSIN card.

Also, for COBOL-DB2 program, we send it thru PARMS("values") in the SYSTSIN card using PGM=IKJEFT01. In this case we can receive through Linkage section am i corect in saying this ?

Thanks in advance.

Cheers
T1nT1n
Back to top
View user's profile Send private message

notonly4u

New User


Joined: 26 Apr 2005
Posts: 87
Location: Hyderabad

PostPosted: Thu Aug 04, 2005 8:53 pm    Post subject:
Reply with quote

HI Tintin,

If you are passing through SYSIN, You have to receive in the Cobol Program through ACCEPT statements.

Regards
Tanden
Back to top
View user's profile Send private message
shobam

New User


Joined: 18 Jul 2005
Posts: 34
Location: CN

PostPosted: Fri Aug 05, 2005 10:48 am    Post subject:
Reply with quote

Quote:
PARMS("values") in the SYSTSIN card using PGM=IKJEFT01


Yes , we have to define a linkage section to receive the PARMS.
Back to top
View user's profile Send private message
t1nt1n

New User


Joined: 08 Jul 2005
Posts: 31

PostPosted: Fri Aug 05, 2005 1:46 pm    Post subject:
Reply with quote

Thanks Notonly4u & Shobam.
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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm


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