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
 

 

How to recover and catalog a gdg file after it is uncataloge

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
ipavan

New User


Joined: 12 Jun 2005
Posts: 28
Location: Hyderabad

PostPosted: Tue Nov 29, 2005 12:21 pm    Post subject: How to recover and catalog a gdg file after it is uncataloge
Reply with quote

Help me out please,

1. How to recover and catalog a gdg file after it is uncataloged, due to noempty or noscratch parameter.

2. I have a main program pgm1 and subprogram pgm2. The error is with subprogram. How to xpedit only the subprogram. We should debug only the subprogram.

3. I am having a cataloged procedure in which 20 files are getting concatenated.say file1.....file20. Now how to override such that i should merge file1, file5,file10 and file20.



Thanks in advance.
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Dec 04, 2005 5:07 am    Post subject:
Reply with quote

Here's an ans for #3. I'll assume all files are cataloged and use a disp=shr.
Code:

//STEPX.CCDS DD
//           DD DSN=DS05.NAME
//           DD DSN=DS10.NAME
//           DD DSN=DS20.NAME
//           DD DUMMY

What this does is leaves DS1 in the concatenation alone. Replaces the DSN of DS02 w/the DSN of DS05, DS03 w/DS10, and DS04 w/DS20. It also makes the original DS05 a dummy dataset. The original DS06 thru DS20 are not processed because Dummy forces an immediate EOF on the 1st read.

If some of the params of DS05, 10 and 20 did not match those of DS02, 03 and 04, you may have to code those params in the overriding DD stmts. For example, if DS02 is not a cataloged ds and DS05 is, you have to code Vol=ser=,unit= in addition to the DSN param to nullify the volser and the unit params in DS02's DD stmt.

BTW, this is a highly esoteric ques for a job interview.
Back to top
View user's profile Send private message
itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Tue Jan 10, 2006 4:41 pm    Post subject: Re: How to recover and catalog a gdg file after it is uncata
Reply with quote

# 2) One way is xp compile both the programs and catch the main program in XP.Then come to the call stmt where it calls the sub program and change the program name on the top left corner to sub programe name.then press F9 so that it will come to the procedure division of sub program.

Another way is you dont have to catch the main program at all.
Instead you can intercep the sub program. connand is INT subprogram name.If you need more details on the second method i can help you.
Back to top
View user's profile Send private message
itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Tue Jan 10, 2006 4:46 pm    Post subject:
Reply with quote

#1) if you specify the absolute file name with volume serial details you can get the data.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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