How can we call CL program to RPG? How many number of parameter we can pass

Answers were Sorted based on User's Feedback



How can we call CL program to RPG? How many number of parameter we can pass..

Answer / vaibhav bhardwaj

Use QCMDEXC API with length and CMD Parameters.

Cmd 32767A
Length 15P 5

Is This Answer Correct ?    6 Yes 1 No

How can we call CL program to RPG? How many number of parameter we can pass..

Answer / ravi kumar

Hi,


CALL PGM(LIB1/ORDER)

Here ORDER is rpg prog in LIB1 library

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More RPG400 Interview Questions

why subproc not run in dftactgrp?????/plz explain

2 Answers   CSC,


Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?

1 Answers   Infogain,


How to declare the dynamic(run time) array in rpgle? can you please give example

2 Answers   Polaris,


how do I do concatenation in rpg iv, like I do in cl?

1 Answers   IBM,


3. Given the DOS Specification below and the following information: • Indicator 50 is off • No records have been written to the subfile What will be the result if the EXFMT operation code is performed on the record format CTLR? A R SUBFL A DESCRIP 101 6 1ODSPATR(UL) A DFT(’NOT FOUND’) A R CTLR SFLCTL(SUBFL) A N50 SFLDSP A SFLDSPCTL A SFLINZ A 67 SFIJEND A SFLSIZ(13) A SFLPAG(12) A ACCOUNTNO 100 S 10 a.) Only AccountNo will display b.) SUBFL will be initialized with 13 blank records c.) An I/O exception error will occur d.) The screen will display 12 records with ‘NOT FOUND’

4 Answers   IBM,






Why Rpg/400 is Famous?

2 Answers   IBM,


check existence of one record without using chain or read?

1 Answers   IBM,


can anybody help me that what is the procedure of debugging the service program?

3 Answers   CSC,


How to select highest score of each subject or how to select highest income of every month?

0 Answers  


Can you copy the records created by the OPNQRYF to other files and how?

2 Answers  


How do you do indexing in a physical file?

2 Answers  


What would be the effect on the field where reverse image, underline and high intensity?

7 Answers   IBM,


Categories