MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Editing a Linear VSAM

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
senthiled
Beginner


Joined: 23 Aug 2005
Posts: 5
Topics: 2

PostPosted: Mon Sep 12, 2005 2:44 am    Post subject: Editing a Linear VSAM Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12365
Topics: 75
Location: San Jose

PostPosted: Mon Sep 12, 2005 4:38 am    Post subject: Reply with quote

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 - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
senthiled
Beginner


Joined: 23 Aug 2005
Posts: 5
Topics: 2

PostPosted: Mon Sep 12, 2005 7:34 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12365
Topics: 75
Location: San Jose

PostPosted: Mon Sep 12, 2005 7:44 am    Post subject: Reply with quote

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 - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
senthiled
Beginner


Joined: 23 Aug 2005
Posts: 5
Topics: 2

PostPosted: Mon Sep 12, 2005 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Sep 26, 2005 6:25 am    Post subject: Reply with quote

Check the file contents after copying to the flat file.
Editing thru File Aid is the easiest way.
Back to top
View user's profile Send private message Send e-mail
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Mon Sep 26, 2005 8:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group