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

How to pass & retrieve values from cobol to clist vice v


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
veena_nagesh2002
Warnings : 1

Active User


Joined: 07 May 2005
Posts: 110
Location: hyderabad

PostPosted: Tue Nov 25, 2008 1:16 pm
Reply with quote

Code:
SET &JTM2  = '&STR(&STR(&JYER)&STR(&JMON)&STR(&JDAT))'  Ex : VALUE IS '20081201'
SET &WK    = 0
SET &LD    = 0


Have created cobol pgm and want to use in clist by using call statement like below

Code:
CALL 'SSR.CHGMAN.XXXX.#004522.LOD(FILSTDY(JTM2 WK LD))'


Through the clist i am passing date(JTM2 to cobol load module pgm) and have to receive the weekday and last day of the month. so could you please let me know how to pass single input and receive two outputs in clist

ERROR :
IKJ56709I INVALID DATA SET NAME, 'SSR.CHGMAN.XXXX.#004522.LOD(FILSTDY(JTM2
IKJ56712I INVALID KEYWORD, WK
IKJ56712I INVALID KEYWORD, LD
IKJ56712I INVALID KEYWORD, )
IKJ56712I INVALID KEYWORD, )'
***
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Nov 25, 2008 6:09 pm
Reply with quote

I'm not an expert, but you have to pass parameters separately from the call:
Code:
CALL 'DATA.SET.NAME' parameters
but I don't have the exact syntax -- use the manuals link at the top of the page to get that.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Nov 25, 2008 6:52 pm
Reply with quote

I think the simplest method is ISPF's VPUT & VGET.

Also, you might want to take a look at TSO's Variable Access Routine IKJCT441.

O.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
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 Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top