how can we write LF using flatfile.
Answers were Sorted based on User's Feedback
Answer / jitender singh
U can do in the following ways
Suppose u have Flat file XYZ of 10 lenght
What u do in LF
R REC1 PFILE(XYZ)
FLD1 I SST(XYZ 1 3)
FLD2 I SST(XYZ 4 7)
IN this way you can also name the filed in LF
Is This Answer Correct ? | 16 Yes | 3 No |
Answer / kk
By using SST k/w in LF, we can write LF using Flat File
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / nirosh
In the system 36 environment, we have procedure named
BLDINDEX for create Logical file for Flat file. First We
can run System 36 environment using STRS36 command. Then
type this command & you need to give starting position of
the key field & length of it.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nirosh
BLDINDEX MLR?WS?,28,8,ML.RETUR,,DUPKEY
BLDINDEX ML.HIS?WS?,9,6,ML.INVHS,,DUPKEY,,17,5
TYPE BLDINDEX in system 36 environment & F4
BLDINDEX PROCEDURE Optional-*
Ignored-%
Crtes an alternat index for a physical file
Name of file to be CREATED . . NIROSH
Start posit for 1st field of key 1-4096 6
Length of first field . . . . . 1-120 5
Start posit for 2nd field of key 1-4096 1
Length of 2nd field . 1-120 5
Start posit for 3rd field of key 1-4096
Length of 3RD field 1-120
Name of PHYSICAL FILE . . . ML.CRDR
Creation date of physical file
Allow duplicate keys DUPKEY,NODUPKEY DUPKEY
Prefer disk locn A1,A2,A3,A4,block number
Enter
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / fahim
suppose flatF name is flat1 n want to relate with lf so follow the steps
recfmtname(flat1) pfile(flat1) and compile it n run lf
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sagar
Suppose u have Flat file FLATPF of 70 lenght
R FLATPF PFILE(SAGARLIB/FLATPF)
FLATFLD RENAME(FLATPF)
FLD1 I SST(FLATFLD 1 5)
FLD2 I SST(FLATFLD 7 8)
FLD3 I SST(FLATFLD 16 4)
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dm400
Create a SQL View over Flat file..SQL view is a almost LF
Is This Answer Correct ? | 0 Yes | 2 No |
Is Constent can be define as a key field?
What is the interactive job? What is the batch job? How to change the batch job to interactive job?
There are six records in a file and we are going to update that records and used commit operation when it complete the update but suppose when it updating the third record,a error occured and operation failed.Is previously two records will be update or whole operation will be rollback? Please confirm it.
Last statement of any RPG pgm is LR?
What is open data path?
what is open data base command
1 Answers Active Brains, Cognizant, CSC, CTS,
what is exception and how many types of exception
How can we handle errors in RPG?
how can we write LF using flatfile.
How to retrieve a physical file after deleting that?
Where the QTEMP library will get created? if the the answer is QSYS, then howcome more than one job can create same library name(QTEMP) in QSYS? what is the uniqueness of QTEMP? For example, run the below command in different workstation WRKOBJ QSYS/QTEMP And take 8 in the option to check the description. both will have different info. so where(which LIB) exactly the QTEMP is stored?
what is general and type of general