IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to map copy book to vsam file in fileaid


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kiran_polnati
Warnings : 2

New User


Joined: 23 Jun 2005
Posts: 22

PostPosted: Mon Apr 23, 2007 3:25 pm
Reply with quote

hi

i have copy book with length 90, and it contains 3 records each record contain lenght 30

Code:
 01 employee.
   
   03 key    x(12)
   03 name   x(20)
   03 loc    x(8)

 01 employeexx.
   03 kfield  x(10)
   03 name1   x(20)
   03 loc 1   x(10)

01 employeexx1.
   03 key1    x(12)
   03 name1   x(20)
   03 loc1    x(8)


then how to map with copy book to vsam file , and how to enter records into that file

i did- i created file with 30 max , min record length but i am seeing first record only when i going throu edit mode

what can i do for i want add the data into 3 records and i want to see all the data through browse mode

Thanks in advance
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Apr 23, 2007 4:34 pm
Reply with quote

Please put your requirement clearly. Your post is confusing.
Back to top
View user's profile Send private message
Karthikt

New User


Joined: 15 Aug 2005
Posts: 51

PostPosted: Mon Apr 23, 2007 5:53 pm
Reply with quote

Please create a copy book for all the 3 records at 01 level itself. When you go into option 3 of File aid (Which facillitates you to open the file referencing a copybook) it prompts to select a 01 level record structure among the three 01 levels in the copybook.
You select the appropriate one for which you require to add the record.
When you see the file in edit mode with the reference of copybook structure you had chosen, type 'I' in the line number to insert a record and add the relevant details under each field and then enter 'SAVE' in the command prompt to save the file for the new record added.
Back to top
View user's profile Send private message
GlobalGyan

New User


Joined: 31 Jan 2006
Posts: 28

PostPosted: Tue Apr 24, 2007 10:57 am
Reply with quote

Type USE on the cmd line in FileAid and it pops up all the layouts. select the layout with S.... thats the way to deal with mutiple layouts in a single copybook!

-GG
Back to top
View user's profile Send private message
Karthikt

New User


Joined: 15 Aug 2005
Posts: 51

PostPosted: Tue Apr 24, 2007 11:23 am
Reply with quote

Please create a copy book for all the 3 records at 01 level itself. When you go into option 3 of File aid (Which facillitates you to open the file referencing a copybook) it prompts to select a 01 level record structure among the three 01 levels in the copybook.
You select the appropriate one for which you require to add the record.
When you see the file in edit mode with the reference of copybook structure you had chosen, type 'I' in the line number to insert a record and add the relevant details under each field and then enter 'SAVE' in the command prompt to save the file for the new record added.
Back to top
View user's profile Send private message
rz061m

New User


Joined: 03 Mar 2006
Posts: 48
Location: Chennai

PostPosted: Tue Apr 24, 2007 9:28 pm
Reply with quote

After you open your file thru edit mode, type FMT at the command line. Now u will be able to see all the fields and enter/read them from the file.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top