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 

edit vsam file

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


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Thu Apr 17, 2008 5:20 am    Post subject: edit vsam file Reply with quote

Hi,

I need to edit the vsam ksds file. Please could you suggest the way. I have Insync in my shop. No File-aid. Using Insync we can access Vsam file if we know copy book. But in this case I do not have copybook. My requirement is I have a vsam dataset

GDLV.GENERAL.PARAMS.GD020B. This file is sorted using below cards

SORT FIELDS = (6,5,CH,A)
INCLUDE COND=(1,5,CH,EQ,C'SD016')
OUTREC FIELDS=(6,5,25,2)

Please tell me how to edit the VSAM dataset to include SD016 manualy. If i open the dataset using insync without copybook its giving data as below.
Code:


000001 AAHDRIGP020A1       0AGD030AB10/17/8519.56                             
000002 AA000AA0001         1C5X=(AA000)(2X3X)N=(1,9)9O+ ;N=(1,9)X=(A/C/D/RGDP-4
000003 AA000AA0001         2C)45X(3AX=(-)2NX=(-)AA+ ;)(2A2N)END           GDP-4
000004 AA000AA0002         1C5X=(AA000)(2X3X)N=(1,9)9O+ ;N=(1,9)X=(A/C/D/RGDP-4
000005 AA000AA0002         2C)45X(3AX=(-)2NX=(-)AA+ ;)(2A2N)END           GDP-4
000006 AA000AA0003         1C5X=(AA000)(2X3X)N=(1,9)9O+ ;N=(1,9)X=(A/C/D/RGDP-4
000007 AA000AA0003         2C)45X(3AX=(-)2NX=(-)AA+ ;)(2A2N)END           GDP-4
000008 AA000AA0004         1C5X=(AA000)(2X3X)N=(1,9)9O+ ;N=(1,9)X=(A/C/D/RGDP-4
000009 AA000AA0004         2C)45X(3AX=(-)2NX=(-)AA+ ;)(2A2N)END           GDP-4
000010 AA000AA0005         1C5X=(AA000)(2X3X)N=(1,9)9O+ ;N=(1,9)X=(A/C/D/RGDP-4
000011 AA000AA0005         2C)45X(3AX=(-)2NX=(-)AA+ ;)(2A2N)END           GDP-4
000012 AA000AA0006         1C5X=(AA000)(2X3X)N=(1,9)9O+ ;N=(1,9)X=(A/C/D/RGDP-4
000013 AA000AA0006         2C)45X(3AX=(-)2NX=(-)AA+ ;)(2A2N)END           GDP-4
000014 AA000AA0007         1C5X=(AA000)(2X3X)N=(1,9)9O+ ;N=(1,9)X=(A/C/D/RGDP-4
000015 AA000AA0007         2C)45X(3AX=(-)2NX=(-)AA+ ;)(2A2N)END           GDP-4
000016 AA000AA0008         1C5X=(AA000)(2X3X)N=(1,9)9O+ ;N=(1,9)X=(A/C/D/RGDP-4
000017 AA000AA0008         2C)45X(3AX=(-)2NX=(-)AA+ ;)(2A2N)END           GDP-4
000018 AA000AA0009         1C5X=(AA000)(2X3X)N=(1,9)9O+ ;N=(1,9)X=(A/C/D/RGDP-4
000019 AA000AA0009         2C)45X(3AX=(-)2NX=(-)AA+ ;)(2A2N)END           GDP-4
000020 AA000AA0011         1C5X=(AA001)2X3X10X=(          )N=(1)X=(A/C/D/RGDP-4

I'm not able to understand it.

Pls. help.

Cheers!!!
Nadh
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Apr 17, 2008 1:14 pm    Post subject: Reply with quote

nadh,

why cant you edit the output file produced from sort? It is only 7 bytes in length and u know the contents and field lengths.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Apr 18, 2008 5:14 am    Post subject: Reply with quote

Why not create a copybook? Presumably the program that creates or reads the file knows the record structure.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
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