Q

Recreate logicals without the source code

I have many logical files which got corrupted and do not have the source for these logical files. How do I recreate these logicals without the source code?

To recreate indexes on logical files without having the source, you can do a RMVM on the logical file and then an ADDLFM. Keep in mind that the logical file member could be different than the file name. If you have a lot of files, I prefer to do this process with a CL program that will does a DSPFD type(*MBR) to an output file and then have the CL program read that file and do the appropriate commands.


This was first published in July 2002

Dig deeper on iSeries COBOL programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close