how can an indexed file be used as arrival sequence in RPG?
Answers were Sorted based on User's Feedback
Answer / sanpra
To achieve this on 'F' Spec leave the 'Record address type'
option as blank ( i.e. don't specify 'K' - Keyed or
anthying) .
Is This Answer Correct ? | 25 Yes | 1 No |
Answer / kamlesh
do not specify K for record address type in F spec.
Use RECNO(VRRN) keyword where VRRN is packed data type
having dec pos as 0 and has length enough to hold
largest RRN of ur PF.
Now move RRN in VRRN variable and apply
VRRN Chain FILE 99
ur required record is retrieved
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ttom
How will chain be used if 'K' is not specified as address
type in the f spec
Is This Answer Correct ? | 0 Yes | 1 No |
How do you find whether a job is a batch job or interactive?
what r drawbacks of OPM? Why do we go for ILE RPG?
What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.
How to update physical file in rpgle without using display file?
what is EXCEPT command in rpg and use
do you use message subfiles? What are the necessary keywords required coding a message subfile?
Hello, I want to extend a length of field in my Display file(Subfile). Please suggest the possible steps. Thanks
program to find the number of objects used in a given program through a display.
Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.
Can anybody tell me that why we use option(*nodebugio)in H- Spec?
what are the types of identifers
can anybody explain significance of *loval setll with example code????