Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to map copy book to vsam file in fileaid

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to map copy book to vsam file in fileaid
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: 1439
Location: Bangalore,India

PostPosted: Mon Apr 23, 2007 4:34 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us