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
 

 

COBOL program retrieval.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: COBOL program retrieval.
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: 1228
Location: Israel

PostPosted: Sun Apr 04, 2010 3:54 pm    Post subject: Reply to: COBOL program retrieval.
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: 94
Location: India

PostPosted: Sun Apr 04, 2010 4:00 pm    Post subject: Reply to: COBOL program retrieval.
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    Post subject:
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

Site Director


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

PostPosted: Sun Apr 04, 2010 9:19 pm    Post subject:
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: 401
Location: Mumbai

PostPosted: Sun Apr 04, 2010 10:03 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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