what is the Difference between SYSIN and PARM ?
Answers were Sorted based on User's Feedback
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.
Is This Answer Correct ? | 13 Yes | 1 No |
Answer / swathi
Also, in SYSIN we can give the data directly. But when you
are using PARM, the data is passed with the help of linkage
section to corresponding program.
Is This Answer Correct ? | 10 Yes | 0 No |
Answer / vinay sonar
Maximum length of data that can be given using parm is 100
chatachers for more length use sysin.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / muttaiah
Parm: is used to send only 100 chars max
Sysin: we can pass large amount of data. Say even a file.
when passing data from parm, there should be a linkage
section in cobol program.
whereas in case of sysin there should be an accept stmt for
each line in sysin.
Please do correct me if i'm wrong.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
What are the default system and catalog libraries in JCL?
A statement about PROCs is " In PROCs, Symbolic Parameters can be assigned on PROC and EXEC", BUT On which EXEC, (i) On the JCL's EXEC which is calling to PROC1. (Inside JCL, EXEC PROC1) (ii) or On the PROC's EXEC where it calls the PGM1. (Inside PROC, EXEC PGM=PGM1)
I have a sequential file in which there are 50 records. Now I want to copy all the 50 records in the reverse order into a new file? The last record in the original file should be the first record in the new file. How can I do it?
Suppose your program is reading a Sequential Vsam file. The file contains 10 records. How will you code the JCL to read only 2nd, 5th, 7th,and 10th record?
what is the resolution for sb37 error
How much is memory space involved, when we code BLOCKSIZE,TRK & CYL ?
I have 10 steps, I want to run STEP1 TO STEP4 then I should not run STEP5 and STEP6. Aganin I want to execute from STEP7 to STEP10. ONLY using CONDITION CODES how can we execute this process? 1. Where we can set cond codes for STEP5 and STEP6? 2. How can we execute remaining steps from STEP7 to STEP10?
i want to restart frm step 2, previously i coded cond parameter on step2 wht happens at tht time ?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What are the jcl procedures?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
How do you find which GDG is using which dataset?