- 論壇徽章:
- 0
|
########## 請(qǐng)保留下面信息 ####################
作者 avid Mount
出處:http://www.texas400.com/BSphyfil.html
翻譯:Eric Kong mail:eric_cc@qq.ccom
關(guān)鍵字: 葡萄牙語(yǔ) Mainframe AS400 Java 廣州 求職 招聘 獵頭 www.puyufanyi.com
備注:本人Java高級(jí)工程師,初學(xué)AS400,有好的職位(廣州),可以跟我聯(lián)系,文章如果翻譯不正確,敬請(qǐng)?zhí)岢?br />
################################################
Adding a field to a physical files which has logical files
在已有邏輯文件的物理文件上添加字段
Recent versions of OS/400 have made it easier to add fields to existing files.
最近版本的OS/400已經(jīng)讓這件事變得容易
On older versions of the operating system, You had to:
在舊版本的操作系統(tǒng)中,你必須這樣:
1) Rename the Physical File (not the DDS, the database file).
重命名物理文件(不是DDS文件,而是數(shù)據(jù)庫(kù)文件)
2) Delete any associated logical files.
刪除所有相關(guān)聯(lián)的邏輯文件
3) Add the new field in the DDS for the Physical File.
在DDS中為物理文件添加新的字段
4) Compile the DDS.
編譯這DDS
5) Use CPYF to copy the data from the old, renamed physical file. You had to use FMTOPT(*MAP).
使用CPYF命令來(lái)從原來(lái)的文件復(fù)制數(shù)據(jù)到新的文件, 重命名物理文件,你必須使用FMTOPT(*MAP)
6) Recompile the logical files.
重新編譯邏輯文件
7) Recompile any programs that use the file.
編譯所有用到這個(gè)文件的所有程序
With newer versions of OS/400, the steps are:
在新版本的OS/400,步驟是:
1) Add the new field in the DDS of the Physical File
添加新字段到物理文件的DDS
2) Key CHGPF and hit F4. Fill in your file name.
輸入CHGPF,按下F4,輸入文件名
Hit F10 and fill in the location of your DDS.
按下F10輸入你的DDS所在位置
OS/400 changes the physical file and rebuilds the logical files.
OS/400就會(huì)修改你的物理文件和重新編譯邏輯文件
3) Recompile any programs that use the file.
編譯所有用到這個(gè)文件的所有程序
To recompile any programs that use the file:
編譯所有用到這個(gè)文件的所有程序的步驟:
STRPDM
STRPDM命令
Select 2 to work with objects.
選2(Work with objects)
Use Q* as the mask for the object name.
用(Q*)篩選
Put 25 next to QRPGSRC and QRPGLESRC.
在QRPGSRC和QRPGLESRC旁邊輸入25
For "Find", key in a mask that will find the physical and logical files.
Find輸入一個(gè)篩選表達(dá)式
For "Option", key in 14.
Option,輸入14
Hit ENTER and let PDM find and compile all your programs.
按Enter讓PDM編譯你的程序
|
|