Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how can we pass parameters from JCL to cobol
subprogram...my requirement is i should not get data from
mainprogram but i need it from JCL directly

Answers were Sorted based on User's Feedback



how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data ..

Answer / abhijit saha

You can do it using SYSIN parameter in JCl and ACCEPT in
COBOL-

JCL using SYSIN

//STEP01 EXEC PGM=CBLPRGM
//STEPLIB DD DSN=SOMETIME.DEMO.LOADLIB,DISP=SHR
//SYSIN DD *
This is a single parameter from STEP01 and SYSIN
/*

Cobol Pgm which uses this JCl

DATA DIVISION.
WORKING-STORAGE SECTION.
..........................
01 SYSIN-PARAMETER pic X(80) value SPACES.

PROCEDURE DIVISION.
..........................
ACCEPT SYSIN-PARAMETER from SYSIN

Is This Answer Correct ?    25 Yes 2 No

how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data ..

Answer / squid

You could use PARM on the EXEC statement and get values
from JCL in the Linkage Section.

Is This Answer Correct ?    23 Yes 1 No

how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data ..

Answer / kalyani

In three ways we can pass the data from JCL to COBOL

1. By specifying in the PARM parameter
2. Sysindd *
3. Through files we can pass
i.e.,
//disk1 dd dsn=oza047.cobol.file1

Is This Answer Correct ?    14 Yes 0 No

how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data ..

Answer / vishal sinha

>>Through PARM parameter
>>Through INSTREAM DD statement

Is This Answer Correct ?    13 Yes 0 No

how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data ..

Answer / muttaiah

Hi All,

Please try to understand the Question here.
They want to pass data from JCl to cobol subprogram not to
cobol program.

The above answers are used in case of passing data from JCL
to cobol.

Can someone answer the question correctly

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

diff bw vsam and normal flat file?

2 Answers   CGI,


Is condition checking possible in jcl?

0 Answers  


Explain the function of dd name parameter with a 2 part structure; audit.report?

0 Answers  


What is concatenating?

0 Answers  


is there any possibilities for sumbitting more than one job in single jcl? if yes...based on which thing they will execute..(priority,class,time,written order..?)

3 Answers   HSBC,


What are hierarchy levels in jcl?

0 Answers  


How we can code in a jcl to execute a job in a particular time and date without using any job shudular?. (Eg) i want to execute a particular job at 8 am on 01/01/2010.

2 Answers   Target,


What is the function of a dd statement?

0 Answers  


how do you resolve for soc7 error

6 Answers   ACS, iGate,


WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375

0 Answers  


Is automatic restart possible in jcl? If yes, how?

0 Answers  


can a job be submitted through jcl only? is there another way to submit a job?

2 Answers   CSC,


Categories