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

How to transfer data between two steps


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Fri Apr 27, 2007 11:27 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Apr 27, 2007 12:12 pm
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: 8797
Location: Welsh Wales

PostPosted: Fri Apr 27, 2007 12:52 pm
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
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Apr 27, 2007 2:44 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Apr 27, 2007 2:50 pm
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: 3156
Location: Tucson AZ

PostPosted: Fri Apr 27, 2007 3:40 pm
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
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
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
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Apr 27, 2007 4:55 pm
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: 3156
Location: Tucson AZ

PostPosted: Fri Apr 27, 2007 4:58 pm
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: 8797
Location: Welsh Wales

PostPosted: Fri Apr 27, 2007 5:20 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 1
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top