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
 

 

How to transfer data between two steps

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

New User


Joined: 12 Mar 2007
Posts: 6
Location: Mumbai

PostPosted: Fri Apr 27, 2007 10:43 am    Post subject: How to transfer data between two steps
Reply with quote

This is my Scenario

STEP1 EXEC Program-1

Program-1 Calls Program-1A

Value-A gets Populated in Program-1A

STEP2 EXEC Program1

Program-1 Calls Program-1B

I need Value-A here in Prgram-1B

I don't want any Files to be used.

Is it Possible? If So how?

Thanks,
Prabhu
_________________
Regards,
Prabhu Balakrishnan
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Apr 27, 2007 11:27 am    Post subject: Re: How to transfer data between two steps
Reply with quote

b.prabhu wrote:
STEP1 EXEC Program-1
Program-1 Calls Program-1A
Value-A gets Populated in Program-1A

STEP2 EXEC Program1
Program-1 Calls Program-1B
I need Value-A here in Prgram-1B
I don't want any Files to be used.
Is it Possible? If So how?
Sure, display Value-A to the operator and ask him/her to enter it back in when the next step asks for it.....
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Apr 27, 2007 12:12 pm    Post subject: Re: How to transfer data between two steps
Reply with quote

Quote:
I don't want any Files to be used.


why not?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Apr 27, 2007 12:52 pm    Post subject:
Reply with quote

Why do you think your shop has lots of little boxes called DASD
Or even those much bigger boxes called tape libraries.

But I suppose that you could really impress your teacher by asking if "Batch Pipes" were a valid method of doing this. But that's a pay for solution.
Back to top
View user's profile Send private message
b.prabhu

New User


Joined: 12 Mar 2007
Posts: 6
Location: Mumbai

PostPosted: Fri Apr 27, 2007 2:09 pm    Post subject:
Reply with quote

HOw
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Apr 27, 2007 2:44 pm    Post subject:
Reply with quote

Actually, I made a slight error above, batch pipes can be used to feed information from one program to another, if that is running in parallel rather than series.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Apr 27, 2007 2:50 pm    Post subject: Re: How to transfer data between two steps
Reply with quote

Your scenario is quite confusing...

I suppose from Your wording that the entity "program-1" is the same "thing"... in both steps

so... get rid of the two steps ,
have "program-1" call/link/doanythingYoulike program-1a
get back the data You need
have "program-1" call/link/doanythingYoulike program-1b passing to it the info You got from the previous call

in two steps what You want cannot be done
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Apr 27, 2007 3:40 pm    Post subject:
Reply with quote

Is MQ considered a "file"?
Back to top
View user's profile Send private message
GlobalGyan

New User


Joined: 31 Jan 2006
Posts: 28

PostPosted: Fri Apr 27, 2007 4:09 pm    Post subject:
Reply with quote

Looks to be like an interview questions... one of those from "how to get rid of a candidate for dummies".
Back to top
View user's profile Send private message
b.prabhu

New User


Joined: 12 Mar 2007
Posts: 6
Location: Mumbai

PostPosted: Fri Apr 27, 2007 4:11 pm    Post subject: Re: How to transfer data between two steps
Reply with quote

enrico-sorichetti wrote:
Your scenario is quite confusing...

I suppose from Your wording that the entity "program-1" is the same "thing"... in both steps

so... get rid of the two steps ,
have "program-1" call/link/doanythingYoulike program-1a
get back the data You need
have "program-1" call/link/doanythingYoulike program-1b passing to it the info You got from the previous call

in two steps what You want cannot be done


Thanks. But i want to do in two steps only.
Back to top
View user's profile Send private message
b.prabhu

New User


Joined: 12 Mar 2007
Posts: 6
Location: Mumbai

PostPosted: Fri Apr 27, 2007 4:13 pm    Post subject:
Reply with quote

GlobalGyan wrote:
Looks to be like an interview questions... one of those from "how to get rid of a candidate for dummies".


Not an interview question dude.

Its a real time scenario.
Back to top
View user's profile Send private message
b.prabhu

New User


Joined: 12 Mar 2007
Posts: 6
Location: Mumbai

PostPosted: Fri Apr 27, 2007 4:16 pm    Post subject:
Reply with quote

William Thompson wrote:
Is MQ considered a "file"?


I think i cannot use MQ as the amount of data i need to pass is quite large.
Back to top
View user's profile Send private message
GlobalGyan

New User


Joined: 31 Jan 2006
Posts: 28

PostPosted: Fri Apr 27, 2007 4:38 pm    Post subject:
Reply with quote

Sorry icon_smile.gif

you want to store large amount of data without files..... Good question..
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Apr 27, 2007 4:55 pm    Post subject: Re: How to transfer data between two steps
Reply with quote

I still do not understand Your stubbornness
is there a business reason for it...
IMWLTK ( inquiring minds would like to know )

a sequential file/dataset is the simplest and only solution
more complex alternatives would be

- MQ messaging
- DB2 table
- persistent data space

otherwise ......
just tell us the answer You would like to receive and we' ll just cut and paste it from Your post into a few replies
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Apr 27, 2007 4:58 pm    Post subject:
Reply with quote

b.prabhu wrote:
Not an interview question dude.
Its a real time scenario.
I find that very hard to believe.....
Could you pleas outline you requirement that precludes the use of a "file" to pass information between two steps, so much information that MQSeries won't have enough capacity to handle it.

Please detail beyond that "program-1" "step1" "program-1a" stuff you called your "scenario". Detail the actual requirement that requires the limitations you are specifying.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Apr 27, 2007 5:20 pm    Post subject:
Reply with quote

And who placed those limitations ?
Back to top
View user's profile Send private message
b.prabhu

New User


Joined: 12 Mar 2007
Posts: 6
Location: Mumbai

PostPosted: Tue May 29, 2007 4:40 pm    Post subject:
Reply with quote

I am not stubborn and i just want to know if there is any way to do the same.
I have convinced the business and now i am using a VSAM file.
Thanks for all your inputs.

Regards,
Prahbu Balakrishnan
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 Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts How to move a long alphanumeric data ... lind sh COBOL Programming 6 Mon Dec 05, 2016 7:51 pm
No new posts ODPP(Optim Data privacy Provider) Iss... Rama kishore IBM Tools 1 Mon Nov 07, 2016 5:46 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm


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