Can AnyOne tell me how to read join logical file in rpg from starting to end?
Answers were Sorted based on User's Feedback
Answer / uday bagdi
1) You can use primary file key field in join logical file. If your join logical file has key field then use *LOVAL SETLL. and read that file in loop.(This condition read records from start to end)
2) if your logical file not a key filed then use RRN like
1 SETLL and read that file in loop. (This condition read records from start to end)
| Is This Answer Correct ? | 4 Yes | 0 No |
I want to add 10 days in current date. how it is possible in CL program...?
I need to generate outfile for object of all the user lib. in the sysmte using cmd DSPOBJD. But this cmd is correcpted in my server,Any body tell me is there any alternative...?
Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.
What is the purpose of FRCDTA keyword?
What is journalling and commitment control?
Can we have a Physical file without any member ? Please let me know
What is the name of default out queue when user logs inn to syatem with valid profile?
How can we change element of compile time array?Can we do so
How can you delete a record from a file in RPG without using DELETE oppcode?
What is a record lock error?
Im traying to get out put of this below mention simple logic code.But im geting out of different.(im trying with my laptop trhough my company server. DCL &FIELD1 *CHAR 10 VALUE('TCS AS/400') DCL &FIELD2 *CHAR 10 CHGVAR(%SST(&FIELD2 1 10))(%SST(&FIELD1 10 1) Can you tell me the value of field2 after excuted of CHGVAR command.
How we will read call stack?