Editing a Linear VSAM
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Data Management

#1: Editing a Linear VSAM Author: senthiled PostPosted: Mon Sep 12, 2005 2:44 am
    —
hi,
i have got an application to test.
The input for a program is taken from a linear vsam.
Now,for my testing.i need to change the input data.
Can i edit the linear VSAM??
I tried ..copying the linear vsam onto a flat file..edit and then again copy it into a linear vsam..but i am not getting the required output.

I doubt whether my editing itself is not correct.

Can someone help me out of this mess.

senth

#2:  Author: kolusuLocation: San Jose PostPosted: Mon Sep 12, 2005 4:38 am
    —
senthiled,


Do you have file-aid at your shop? If so you can edit the file using file-aid. Show us how you copied the linear cluster to seq file. Also let us know the fields you want to edit with the positions and format.

Kolusu

#3:  Author: senthiled PostPosted: Mon Sep 12, 2005 7:34 am
    —
i copied the linear vsam onto a flat file using idcams as follows:
Code:

//STEP01   EXEC PGM=IDCAMS                                         
//DD1      DD DSN=V901923.PT.ZSTR.LINEAR.STORE.EXTRACT,DISP=SHR   
//DD2      DD DSN=J38W031Q.PT.ZSTR.LINEAR.STORE.EXTRACT,           
//            DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,                 
//            DCB=(RECFM=FB,BLKSIZE=0,LRECL=4096,DSORG=PS)         
//SYSPRINT DD SYSOUT=*                                             
//SYSIN    DD *                                                   
  REPRO INFILE(DD1) OUTFILE (DD2)                                 
/*                                   

And how do we edit using file-aid?
We have File Aid ..but i couldn't figure out how to edit.


regards,
senthil

#4:  Author: kolusuLocation: San Jose PostPosted: Mon Sep 12, 2005 7:44 am
    —
Senthiled,

If your shop has file-aid then it is very easy to edit files. From the file-aid main menu choose option 2 (EDIT) . On the next panel give the vsam cluster name and if you have a layout for the file specify that in the record layout section and press enter.

Kolusu

#5:  Author: senthiled PostPosted: Mon Sep 12, 2005 7:59 am
    —
i tried editing in file-aid but it says' linear vsam file'
And i am not able to edit.

and is my method of converting to flat file and back to linear vsam correct.

regards.

#6:  Author: vkphani PostPosted: Mon Sep 26, 2005 6:25 am
    —
Check the file contents after copying to the flat file.
Editing thru File Aid is the easiest way.

#7:  Author: PhantomLocation: The Blue Planet PostPosted: Mon Sep 26, 2005 8:06 am
    —
Senthiled,

Quote:

and is my method of converting to flat file and back to linear vsam correct.


I think you have given only one way - VSAM to Flat file. That looks correct. Better remove the BLKSIZE=0 parameter, let JCL do the math.

And what error message do you get with your file when you open in File-Aid ? Try browsing the dataset first (without layout).

Thanks,
Phantom

Thanks,
Phantom



MVSFORUMS.com -> Data Management


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group