Is it possible to call a subfile using CL. IF yes.. kindly
help me out with explanation...?

Answers were Sorted based on User's Feedback



Is it possible to call a subfile using CL. IF yes.. kindly help me out with explanation...?..

Answer / rakesh

In CL procedures and programs, message subfiles are the only
type of subfiles supported. To use subfile message support,
run a SNDF or SNDRCVF command using the subfile message
control record. In the DDS, supply SFLPGMQ data and always
have SFLINZ active.

When you use message subfiles in CL procedures and programs,
you must name a procedure or program. You cannot specify an
* for the SFLPGMQ keyword in DDS. When you specify a
procedure or OPM program name, all messages sent to that
procedure's or program's message queue are taken from the
invocation message queue and placed in the message subfile.
All messages associated with the current request are taken
from the CALL message queue and placed in the message subfile.

Message subfiles let a controlling procedure or program
display one or more error messages.

Ref:-
http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp?topic=/com.ibm.etools.iseries.pgmgd.doc/evfclmst161.htm

Is This Answer Correct ?    4 Yes 0 No

Is it possible to call a subfile using CL. IF yes.. kindly help me out with explanation...?..

Answer / saibhageerath

We can't call the subfile through CL.(Except massage subfile).

Is This Answer Correct ?    1 Yes 0 No

Is it possible to call a subfile using CL. IF yes.. kindly help me out with explanation...?..

Answer / guest

Yes. Just use the same C library procedures that C uses.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

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 I can reread the physical file in CL program once the end of file reached in same CL program.

20 Answers   IBM,


Why did we give STRSRVJOB while debugging batch program

3 Answers   HBL Power Systems,


Hi friends, Can you give the solution for the below mention simple code.and explain.what is output D CHR1 S 4A INZ('PEN') D CHR2 S 10A INZ('MYGET') D CHR3 S 8A INZ('GOOD') D CHR4 S 22A INZ C MOVEL CHR1 CHR4 C MOVE CHR2 CHR4 C EVAL CHR4=CHR3 C MOVE CHR1 CHR4

4 Answers  


without logical file we cannot access the data in physical file.but we specify physical file in the program(ie:- Ffile IF E k disk).how can it be accessed?

3 Answers   HSBC, TCS,


In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening

2 Answers  


How can i keyed a flat file in RPGLE

5 Answers   IBM, Wipro,


i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


Can we possible to key with the date field?

1 Answers   IBM,


what is an online rpg?

0 Answers   IBM,


1. Which Built-In-Function will you use to achieve the following functionality? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2++÷ResultLenDHHiLoEq C QTY IFLT *ZERO C QTY MULT -1 QTY C ENDIF a) %ABS b) %TRIM c) %TRIMS d) %UNS

3 Answers   IBM,


Can any body give the code for this quesition? Using the following details write C-Spec code to set Name to"AMMU LABS SYSTEM" D NAME1 S 10 INZ('AMMU') D NAME2 S 10 INZ('LABS') D NAME3 S 10 INZ('SYSTEM') D NAME S 20

5 Answers  


Categories