View previous topic :: View next topic |
Author |
Message |
nishantrk Beginner
Joined: 24 Mar 2006 Posts: 32 Topics: 16
|
Posted: Mon Aug 31, 2009 9:35 pm Post subject: how to copy a XREF file to another PDS |
|
|
I need to copy a xref file to another ..but somehow FILE AID is not recognize it..do we need to do anything special there...as i see inside the file its written not to edit manually? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Aug 31, 2009 9:41 pm Post subject: |
|
|
nishantrk,
Afaik I remember XREF dataset have to be a PDS with RECFM=VB, LRECL=300, BLKSIZE=304. Allocate your target with the following properties and copy it
Kolusu |
|
Back to top |
|
|
nishantrk Beginner
Joined: 24 Mar 2006 Posts: 32 Topics: 16
|
Posted: Tue Sep 01, 2009 10:24 pm Post subject: |
|
|
yeh..that what i had done..but no use...FILE AID gives the error as invalid type..though it will take if i try to create a new member!!!
Any help on this will be much appreciated as i need to COPY lot of XREF files from one system to another....and it would very tedious doing it manually |
|
Back to top |
|
|
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Wed Sep 02, 2009 10:06 am Post subject: |
|
|
Pardon my ignorance, but what exactly do you mean by an "XREF" file? Mainframe file organizations are normally referred to as PS, PO (PDS or PDSE), or VSAM. _________________ ....Terry |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Sep 02, 2009 10:41 am Post subject: |
|
|
Terry_Heinze,
File-aid creates this xref dataset when u run file-aid online instead of batch and it can also be used in batch version , however the way the pds members are created is slightly different
Kolusu |
|
Back to top |
|
|
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Sun Sep 27, 2009 4:18 am Post subject: |
|
|
Terry -- To browse a file using different record layouts simultaneously File-aid provides the facility of using XREFs.
nishantrk -- This Quote: | but somehow FILE AID is not recognize it | needs clarification. What error message did you get?
Alternately, You may follow the following steps:
1. Take option 7 (labeled XREF) from the primary menu of File-AID.
2. Enter the dataset name of your XREF library and a member name for the XREF you want to create. For example, FILEAID.XREF as the dataset and PAYMENTS as the XREF member name, if this is for a payments data file. Note, the following are the attributes for the XREF dataset if you don't have one already allocated RECFM=VB, LRECL=300, BLKSIZE=304 and this MUST be a PDS. As Kolusu has mentioned.
3. On the same screen, enter the name of your record layout dataset (usually a copybook library). Then press enter.
4. On the next screen, enter a description for this XREF (this is optional). Then, on the bottom half of the screen, enter member names of members in the layout dataset which you want to use. When you press enter, File-AID automatically gets the 01 level record definitions from the layout members.
5. Using the S line command, against each of the record layout members, will bring up the record layout on the screen for you. Here i swhere you specify the condition that must be met in order for File-AID to use this record layout in your edit/browse session. For example, if you have a field called PAYMENT-TYPE, then under the RO column (which stands for relational operator) enter EQ and then to the right of that you can specify a value, for example DIRECT. This means that this record layout will be used whenever the PAYMENT-TYPE field has a value equal to the literal DIRECT. You will need to repeat this process for every record layout that you want to use in this XREF, obviously each one will have a different condition attached to it. Once you have finished, simply PF3 back out to your primary menu of File-AID.
6. You are now ready to use the XREF. Take option 2 (EDIT) from the primary menu. Enter the name of the dataset you want to edit and select edit mode of F (formatted). Enter record layout usage of X, specify the record laout dataset but NO member name. Specify the name of your XREF dataset and also the XREF member name. Then press enter. Now you will be in your edit session in formatted mode. As you scroll through your records, using PF11, File-AID will automatically select the correct layout definition depending on the selection criteria you defined in the XREF set up. _________________ Regards,
Anuj |
|
Back to top |
|
|
|
|