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 FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 6 Thu Mar 23, 2017 5:12 am
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm


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