Clicky
Skip to Content
Custom Search

Reply to comment

Anonymous

 

I have a requirement where I need to delete a file if a particular condition is met in the cobol program.
 
Now this may sound strange to you, but thats how the requirement is.
 
I have never deleted a file using COBOL, JCL is the one that is supposed to handle such requests. 
 
I have one solution in my mind, that is to set RETURN-CODE register in the COBOL program to some value lets say 55 when the condition to delete is met
in the cobol program and in the subsequent step in JCL, I will delete the file using IEFBR14 if the RC is 55.
 
I hope this would work, I am looking for some alternate solutions to this problem.

Reply

  • Allowed HTML tags:
      1. Lines and paragraphs break automatically.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Navigation

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer



Number of Registered users 713
Theme by Dr. Radut.