how can you execute a command from within an rpg program without calling a clp program?



how can you execute a command from within an rpg program without calling a clp program?..

Answer / kanckan singh

By calling QCMDEXC application program interface we can execute a CL command with in an RPG program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

whare we can use IN AND OUT AND UNLCK opcodes?please can any body tell me in real time senario with example

2 Answers  


What are the mandatory keywords of sub file?

0 Answers   IBM,


What is the symbol used for defining a new field in SDA?

1 Answers  


when do you use f-spec. Continuation line ?

1 Answers   IBM,


what is the command to know how many lf are related to a pf?

1 Answers   IBM,


What is the default access path of a file?

0 Answers  


I have a display file with mandatory fields. Is there anyway that i can highlight those fields to bring attention to the user? The same behavior that AS400 makes when we attempt to execute a command without completing all the required parameters. Note: I have used DSPATR(HI) or DPSATR(RI) and they have different behaviors. Thanks.

2 Answers  


what is the command to know key fields of file?

0 Answers   IBM,


Pgm A is invoked through HTTP. It is in Activtion group QILE. Pgm A calls Pgm B and Pgm C. Pgm B is in activation group TEMPACTGRP. Pgm A ends in error. Pgm A is called again. But it gives an error that TEMPACTGRP still exists and files are present in QTEMP. What is the cause and how will u fix?

1 Answers  


Define the purpose of the following code (If you know, how would this be written in RPG ILE) HI LO EQ C *IN66 DOUEQ *OFF C KEY1 CHAIN FILEA 90 66 C 66 CALL PGM1 PRM C ENDDO

1 Answers  


Is qgpl a user library or system library?

1 Answers  


how does union file maintains record formats?

0 Answers   IBM,


Categories