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 Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm
No new posts Interface from Mainframe to Confluenc... hblun CLIST & REXX 4 Tue Sep 20, 2016 5:47 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Admin Openings with CTS enikhilk Mainframe Jobs 0 Tue Sep 13, 2016 10:13 am


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