saving back-up record



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

saving back-up record

Postby mbisa » Mon Nov 19, 2007 1:35 pm

hi, is it possible to save a back-up of a record using jcl? like for example i'm going to edit a record but the report should dsplay not only the record that has been changed, but also the original record.pls nid ur help..tnx..
mbisa
 
Posts: 9
Joined: Thu Nov 15, 2007 11:57 am
Has thanked: 0 time
Been thanked: 0 time

Re: saving back-up record

 

Re: saving back-up record

Postby CICS Guy » Mon Nov 19, 2007 3:55 pm

mbisa wrote:the report should dsplay not only the record that has been changed, but also the original record.
What are you going to use to create this report?
CICS Guy
 
Posts: 255
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: saving back-up record

Postby dick scherrer » Mon Nov 19, 2007 9:55 pm

Hello,

hi, is it possible to save a back-up of a record using jcl? like for example i'm going to edit a record but the report should dsplay not only the record that has been changed, but also the original record
Individual records are typically not "backed up" by jcl or anything else. . . Files ae backed up via jcl (and some utility).

JCL does not "edit" files or records.

If you more clearly explain what you need to do (an example would help), we may be able to offer suggestions.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: saving back-up record

Postby mbisa » Wed Nov 21, 2007 7:08 am

hi, my task is to code a jcl which will provide a back-up of records.for example:the user make changes in a record and then save it, a report should display the original contents of a record and the modified contents of a record.(hope ds example is clear)...tnx..

this my jcl for back-up....but i think this is not enough. pls. help..

BCKUP EXEC PGM=IEBGENER
SYSPRINT DD SYSOUT=*
SYSIN DD DUMMY
SYSUT1 DD DSN=MY.RECORD.BACKUP,
DISP=SHR
STEP01 EXEC PGM=IEFBR14
SYSUT2 DD DSN=MY.RECORD.EDIT,
DISP=SHR
mbisa
 
Posts: 9
Joined: Thu Nov 15, 2007 11:57 am
Has thanked: 0 time
Been thanked: 0 time

Re: saving back-up record

Postby CICS Guy » Wed Nov 21, 2007 6:41 pm

mbisa wrote:hope ds example is clear
No, not really......
CICS Guy
 
Posts: 255
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: saving back-up record

Postby dick scherrer » Thu Nov 22, 2007 10:00 am

Hello,

this my jcl for back-up....but i think this is not enough.
You are correct - this is not enough.

What is the purpose of the IEFBR14? As posted, it does not do anything.

If you want to show user changes, that reporting will need to be part of the code that allows the user to change records. It will not be a requirement that you can implement using IEBGENER.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post