IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COBOL program retrieval.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Sun Apr 04, 2010 3:25 pm
Reply with quote

Hi ,

My COBOL program has got deleted ,actually i made a mistake in taking a backup copy.

so the spool where i compiled is the only source for me to retrieve the code but this code is completely in the expanded format.

I need to know is there any other workaround so that i can retrieve my program back.

Actually is there any way that the loadlib can be converted back to the program code.

Help is needed in this regard. thanks in advance.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sun Apr 04, 2010 3:54 pm
Reply with quote

Quote:
Actually is there any way that the loadlib can be converted back to the program code.

If you don't have such a tool (I'm not even sure it exists), how can it be an option ?
This is not the kind of tool that can be written in REXX in a few minutes...

If there's no backup, then I would say restoring from the compile listing is the only option.
And, if it is a DB2 or CICS program, using the precompiler listing is better than the cobol listing.
Back to top
View user's profile Send private message
Ranjithkumar

New User


Joined: 10 Sep 2008
Posts: 93
Location: India

PostPosted: Sun Apr 04, 2010 4:00 pm
Reply with quote

@Technocrat

Restoring from listing is the best option. Though you can create source from load, you'll lose the variable names used in the program.
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Sun Apr 04, 2010 4:13 pm
Reply with quote

Thanx ranjith, and Marso

but the compile listing is been expanded with alal the DB2 TABLES and the copybooks
and also the listings is been expanded till the 130 th column.


Can i use the file transfer option in the mainframes where i can transfer the data from the .TXT file to the COBOL pds.


Please let me know for this option as i have taken the COMPILE listing and sorted out and now want to upload it to the system.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Apr 04, 2010 9:19 pm
Reply with quote

Hello,

Yes, the .txt file can probably be uploaded to the mainframe.

One easy way to do this (if you have permission on your system) is to use the ftp client on your pc, connect to the mainframe ftp, position the mainframe to an upload pds (one you create for this - not some common use pds), and transmit the file from your pc to a member on the manframe specifying ASCII.

Once you have successfully uploaded the .txt file, you can do whatever is needed.

If there are questions/problems with the file transfer, the fastest way to get this resolved is working with the system support people for that system.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Sun Apr 04, 2010 10:03 pm
Reply with quote

if your source was stored in a PDS, not a PDSE, and the PDS was NOT compressed since you deleted the member, you can recover the deleted members. See the PDS command on the CBT tape (cbttape.org) and check with your help desk and system programming staff to see if they already have it installed. They may have the commercial version, STARTOOLS.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top