what is the Difference between SYSIN and PARM ?

Answer Posted / anjaneyulu javisetty

there are two ways to send data to the application prog.
1)parm (for small amount of data)
2)sysin(for large amount of data)

1)parm: is used to send the data to application prog
(eg;.cobol)

upto 100 characters.

2)sysin:is used to send the data to application prog
(eg;.cobol)

large amounts.
examples:

1) using JCL with sysin. //sysin dd *here u code the parameters(value) to pass in to cobol program /* and in program
you use accept variable name(one accept will read one row)/.another way.
2) in jcl using parm statement ex: in exec statement parm='whatever' in cobol pgm u have to code linkage section in that for first value you code length variable and variable name say, abc pic x(4).it will take john inside to read next value u have to code another variable in the same way above mentioned.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

923


//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

911


How can a jobs execution priority be modified?

799


Must tape dataset definitions include vol=ser specifications?

983


What is one line to pass PARM from JCL to COBOL?

820






How is a type of file defined in the jcl that executes the cobol program?

714


Is it possible to code instream data in a PROC?

752


What is the purpose of dd dummy statement?

944


List in order the hierarchical levels of jcl?

670


How to submit jcl through a cobol program?

679


What is the maximum length of a single line of jcl?

829


Explain about ISPF/TSO Commands

1313


What is the function of a dd statement?

709


What do you understand by the term notcat 2 – gs?

759


Explain the jcl exec statement?

649