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
 

 

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 Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am


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