Can anybody please tell me what is difference between SQL
(STRSQL ) and WRKQRY .....?

Answers were Sorted based on User's Feedback



Can anybody please tell me what is difference between SQL (STRSQL ) and WRKQRY .....?..

Answer / jyoti

STRSQL is interactive user session where one can use the
SQL commands to query over the file/files. STRSQL even can
perform the file updates and deletions.
This is quick interactive session and does not lock the
file while file updations are performed.

WRKQRY is the mainly used when one needs to save the query
definition for reuse. The queries created using WRKQRY can
even be used in CL programs by RUNQRY (query name).

Is This Answer Correct ?    12 Yes 0 No

Can anybody please tell me what is difference between SQL (STRSQL ) and WRKQRY .....?..

Answer / sathya

Inserting a record into physical file is not possible using
wrkqry.
Unique and distinct records cannot be derived from wrkqry.

Where strsql can gives access to do both.

Is This Answer Correct ?    6 Yes 0 No

Can anybody please tell me what is difference between SQL (STRSQL ) and WRKQRY .....?..

Answer / syam

In STRQRY you will get main 2 menus (Query for AS/400 and
Query Management). WRKQRY is one of the Option in STRQRY
(Query for AS/400). Only you want query some records from
database use WRKQRY.

Is This Answer Correct ?    8 Yes 6 No

Post New Answer

More IBM AS400 AllOther Interview Questions

Difference Between Call & Sbmjob?

0 Answers   IBM,


Q.Hi All friends, I have one Question, I have three fields in display file SUP LOT, ISSUED to Prod and Line Grp. Field SUP LOT is mentioned in one field reference file WRSLT and key field as a key field LP.Fields ISSUED to PROD,Line GRP are mentioned in the another Field reference file WMDTF. So I want to read SUP LOT on the basis of key field LP from the first file WFSLTand then i want ot read another two fields ISSUED to DATE and LINE GRP from second file on the basis of SUP LOT, which i got from first file.Now i want to display these fields in the display file DSPWMMS. but Condition is that 'Supplier Lot,ISSUED to Prod and Line Grp will not be shown if their respective fields are blanks/Zero. Please Let me Know coding part of this senerio and what would be coding for display file to now shown fields if fields are blanks/zero. My mob. no. is 9836300345. Please reply me asap.

1 Answers   IBM,


what are dds required for subfile?

0 Answers   IBM,


can we creat a member logical file

3 Answers  


Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?

0 Answers  






Define a Job Queue?

1 Answers  


what is the difference between udate and the system date?

1 Answers   IBM,


how to declare a constant variable in the freeformat?

0 Answers  


what does defn do?

0 Answers   IBM,


what is procedure prototype and procedure interface.

0 Answers   IBM,


what is message subfile?

1 Answers   IBM,


Describe the function of SETLL operation in RPG language?

1 Answers  


Categories