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
 
How to return a value from cobol program to jcl so that it c

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
umed

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Tue Apr 11, 2006 3:35 pm    Post subject: How to return a value from cobol program to jcl so that it c
Reply with quote

Hi,
here in first step of JCL suppose i am dynamically allocating the dataset where the dataset name is decided based on some validation(i.e. depending on tht we use second qualifier). and by using tht dataset name we allocate the dataset.

Now in next step i need to use same dataset name so how can we get what kind of dataset name (second qualifier ) created in earlier step.

Regards,
Umed
Back to top
View user's profile Send private message

umed

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Tue Apr 11, 2006 3:37 pm    Post subject: Re: How to return a value from cobol program to jcl so that
Reply with quote

Hi,
here in first step i am dynamically creating the dataset by using a cobol program.after matching data frm input file , to a table i am taking one field contents as second qualifier here.

Regards,
Umed
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Apr 11, 2006 3:40 pm    Post subject:
Reply with quote

hy umed,

how you create that dataset?
with a utility or with a cobol program, or however?
does your jcl already know the name of the dataset?

can you provide the jcl?

martin9
Back to top
View user's profile Send private message
umed

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Tue Apr 11, 2006 3:55 pm    Post subject: Re: How to return a value from cobol program to jcl so that
Reply with quote

Hi,
here we are creating the dataset thru cobol program which is used in first step.dynamically allocating/creating the dataset and in next step we are using that as the second dataset name is decided based on some conditions.

As the cobol program creates the dataset name dynamically in next step we are expecting to pass the dataset name which has been given in first step for use in next step.so i need to pass the dataset name which is dymnamically allocated thru cobol program in first step to next one.

Regards,
Amol
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Apr 11, 2006 4:33 pm    Post subject:
Reply with quote

hy umed,

if you have the appropriate access routines, with
which you can dynamically access any datasets,
the dataset name passed, could be as input to
the next program/step. therefore write a file
to pass the name from step1 to step2.

martin9
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
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
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

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