How do you get parameter from JCL to PL1?



How do you get parameter from JCL to PL1?..

Answer / Kapil Verma

To pass parameters from JCL (Job Control Language) to PL/1, you can use the PARM statement in your PL/1 program. Here's an example:nn* PARM PARAMETER-LIST.n DCl PARAMETER-LIST S size s.s.n DC FD PARAM-FILE OMITTED USING PARAMETER-LIST.n EXEC SQL OPEN PARAM-CURSOR FOR INPUT READING PARAM-FILE;n EXEC SQL FETCH NEXT FROM PARAM-CURSOR INTO :PARAMETER-LIST;n WHILE (SQLCODE = 0) DO ...; ENDDO;n EXEC SQL CLOSE PARAM-CURSOR;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM MainFrame AllOther Interview Questions

what are the ARRAY operations in    rpg/400?

1 Answers  


Explain the meaning of spufi?

1 Answers  


how to get last 100 records in file-aid?

1 Answers   Syntel,


What is z os in mainframe?

1 Answers  


Can we move alphanumeric incentive to the numeric field?

1 Answers  


suppose I have two tables a and b. Both tables are connected with ssn number as foreign key. I want to retrieve a column data from b table. How will you write a query?

1 Answers   IBM,


Is therE anybody who knows about TICKLER FILE of RM.??thank you

1 Answers  


What is downtime and what might be the reason?

1 Answers  


what is difference between file-aid tool and file-aid utility?

1 Answers   IBM,


State the maximum number of tables that can be joined?

1 Answers  


Can you explain create an empty file by using sort?

1 Answers  


Write the difference between hidam and hdam databases?

1 Answers  


Categories