what is use of sflnxtchg and use of MDT(modify data
tag).both r same r not and can we use these on dspf and subfile.
Answers were Sorted based on User's Feedback
Answer / ram
SFlNXTCHG is a subfile record format keyword.
If the SFLNXTCHG indicator is turned on and the subfile
record is written or updated the change flag will be forced
on so in the subsequent processing the READC will get that
record.
One use for this is so that the records can be edited for
errors and if no errors are found then they can be
processed. As the readc loop edits for errors it updates
each subfile record with the SFLNXTCHG indicator on and
that allow the update loop to use the READC to get the
records again.
If you perform read on the subfile, the internal indicator
MDT (modified data tag) is automatically set off by the
system. If you again perform read on the same records,
records won't be read. Because internal indicator MDT
would be off. Hence you should be explicitly set on the
MDT by SFLNXTCHG keyword.
Both are not same.
We Can use in Subfile.
Is This Answer Correct ? | 23 Yes | 0 No |
Answer / reecha
1. when a read is performed on subfile , the MDT is turn
off .
2. So if again a read is done on subfile , it cannot sense
the change done on the subfile .
3.in order to sense the changed record use SFLNXTCHG
keyword by setting on the keyword & do an update in subfile
4. so now if agin u perform a read , the changed record
will be sensed.
Is This Answer Correct ? | 6 Yes | 3 No |
I have a Physical File name 'File1', which is present in two libraries named 'LIB1' & 'LIB2'. These 2 libraries are listed in the library list. Would like to access data from this file from these two libraries using RPG program. How to do this, any idea?
Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?
Whether a module can consists of many procedures or it can consist of subprocedures having a main procedure?If it is possible that it can contain many individual procedures than can we have different name for complete module and how do we call this module in main modul?
Hi all friend, Could Any body send me the code (with coding) of this senario because I have tried but I am stucking somewhere so Please reply ASAp with coding. senario:Q: I have to write the flat file(FLAT1) into the three different PFS (PF1,PF2 and PF3) with the respect of H line data, D line data and Z line data of flat file. where I have different data in flat file(FLAT1) which is mentioned below with data. H0929200909282009092820095529420003000073 D2222220006765555webservi001633.9909222009092820090924200951 8564380134049ROSNER TOYOTA OF FREDE FREDERICKSBURVA 224080000USA840840001633.99001633.99851856492689800208001915 511001633.990408490000000.0000000003446048 1,3 110793145 09070700351 372367 Rosner Motors D3333320006774444webservi000271.2409222009092820090924200951 8564380134049ROSNER TOYOTA OF FREDE FREDERICKSBURVA 224080000USA840840000271.24000271.24851856492689800208001835 511000271.240930680000000.0000000003450293 1 110793254 09072100079 373933 Rosner Motors Z0929200900000020001905.25 FLAT1 has the three pf data H line-represents the header pf data,D-Represent Details pf data,Z-Represents the trailer pf data Now I have to write H line data of flat file into Header pf (PF1),D line data of flat into datails pf(PF2) and Z line data of flat file into pf(PF3) with the spefic position(H,D and Z data of flat file into PF1, PF2 and PF3) of flat file.
What is the OPEN and CLOSE accesspath?
Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)
Can we journel logical file and access path? Can we use commitment control for non-join L.F?
1.what are the ARITHMETIC EXPRESSIONS IN CL PGM? 2.How to PASSING PARAMETER TO CL PGM?
I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5. Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.
I want to add 10 days in current date. how it is possible in CL program...?