View previous topic :: View next topic |
Author |
Message |
senthiled Beginner
Joined: 23 Aug 2005 Posts: 5 Topics: 2
|
Posted: Mon Sep 12, 2005 2:44 am Post subject: Editing a Linear VSAM |
|
|
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 |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Sep 12, 2005 4:38 am Post subject: |
|
|
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 _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
senthiled Beginner
Joined: 23 Aug 2005 Posts: 5 Topics: 2
|
Posted: Mon Sep 12, 2005 7:34 am Post subject: |
|
|
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 |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Sep 12, 2005 7:44 am Post subject: |
|
|
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 _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
senthiled Beginner
Joined: 23 Aug 2005 Posts: 5 Topics: 2
|
Posted: Mon Sep 12, 2005 7:59 am Post subject: |
|
|
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. |
|
Back to top |
|
|
vkphani Intermediate
Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Mon Sep 26, 2005 6:25 am Post subject: |
|
|
Check the file contents after copying to the flat file.
Editing thru File Aid is the easiest way. |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Mon Sep 26, 2005 8:06 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|
|