How to print output from openquery in as400 ?



How to print output from openquery in as400 ?..

Answer / ericles daltonious

OPNQRYF FILE((LIBRARY/INFILE)) QRYSLT('Selection')
CPYFRMQRYF FROMOPNID(INFILE) TOFILE(LIBRARY/OUTFILE)

Is This Answer Correct ?    17 Yes 2 No

Post New Answer

More RPG400 Interview Questions

1.Write code to read the records from a file and load an array of size 99? Make sure that you take care of all the error conditions?

2 Answers   HSBC,


How can you determine the number of characters in a variable?

3 Answers  


What is the significance of UDATE?

5 Answers   IBM,


What is the difference Return and InLr?

3 Answers  


suppose if we want to update the data in cl what we will do?

9 Answers  






1.CA(command Atention key)& CF(command Function key) difference with example?Please can any body tell me in real time exp? 2.Can any body tell me some mandatery function keys using while creating any screen with use of SDA-FUNCTION kEYS?

5 Answers   HCL,


Suppose I have 3 jobs a b and c. I want to submit b after successful completion of a and want to submit c after successful completion of b. Without using job scheduler or job queue, how can I do that through cl program?

1 Answers  


what are the types of identifers

2 Answers   IBM,


in a cl pgm records are copied to a file in qtemp a pgm is called to delete records from the file in qtemp no of records in file in library qtemp is checked wat shud be the count of records let say it was 10 initially endpgm

2 Answers  


how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.

1 Answers  


How to set on/off a group of indicators in a single statement?

3 Answers  


1.The questions have given an array declaration and move operation then this statement is correct or not?

3 Answers   TCS,


Categories