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
 
mainframe challenge

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
pinkroses

New User


Joined: 07 Nov 2005
Posts: 19

PostPosted: Thu Sep 14, 2006 11:21 am    Post subject: mainframe challenge
Reply with quote

MAINPGM: (NODYNAM)

DISPLAY 'BEFORE CALL'.
CALL 'SUBPGM'
DISPLAY 'AFTER CALL'.
STOP RUN.

SUBPGM: (NODYNAM)

DISPLAY 'IN SUBPGM'
GOBACK.

We have the composite load module MAINPGM, which will display

BEFORE CALL
IN SUBPGM
AFTER CALL

Without changing any of the programs mentioned above, the load should display

BEFORE CALL
CHANGED SUBPGM
AFTER CALL

Expln:

Pgm A calls Pgm B.. without changing both the pgms.. how to get the answer highlighted in red??? Note: all the display statements are hardcoded!!
Back to top
View user's profile Send private message

raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Sat Sep 16, 2006 3:05 am    Post subject: Re: mainframe challenge
Reply with quote

edit the load module directly.

find "IN SUBPGM " in load module and replace with "CHANGED SUBPGM "

run the program.
Back to top
View user's profile Send private message
neelesht

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Mon Sep 18, 2006 12:48 pm    Post subject:
Reply with quote

Hi PINKROSE,

Please let us know what ans Raghu gave is what you were looking for or is it something else ?

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

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Mon Sep 18, 2006 10:14 pm    Post subject:
Reply with quote

What about the lenghths of "IN SUBPGM " and "CHANGED SUBPGM" !!!
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm

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