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 data from cobol to JCl?

Answers were Sorted based on User's Feedback



How can we pass data from cobol to JCl?..

Answer / sri

When someone ask you that question first thing you need to
do is you post a question to him.

Passing data from COBOL to JCL means where in JCL ?

Do you mean a file? File is also a part of JCL. If it is
file then your answer is WRITE the data into the file.

Do you mean a PDS member ? Then WRITE the data or what ever
into the PDS member.

Do you mean SYSOUT ? If so just DISPLAY the value.

If he says not these three then he need to tell what is the
purpose of moving data to JCL ? for you to give an answer.

Is This Answer Correct ?    42 Yes 2 No

How can we pass data from cobol to JCl?..

Answer / guest

We can pass the data from cobol to JCl

ex: Move 4 t0o return code.

Is This Answer Correct ?    31 Yes 4 No

How can we pass data from cobol to JCl?..

Answer / anil prajapati

we can pass data from cobol to jcl by using return-code
like
move 450 to return-code
if we are passing data likeit then at run time the maxx
return code will be this code if move code is a negative
number then after subtracting from 4096 maximum return code
will be displayed

Is This Answer Correct ?    19 Yes 2 No

How can we pass data from cobol to JCl?..

Answer / rosi

hi.
i need help
i need Passing a variable parm from JCL to a cobol/db2
program
I'm trying to write a batch cobol/db2 pgm wich receive in
linkage section some paremeters
I succeeded to pass a static string of characters but what
I need is variable parameters (INPUT )

//DDB5A59 JOB CLASS=A,MSGCLASS=R,MSGLEVEL=
(1,1),NOTIFY=xxxx
//
REGION=0M
// SET INPUT=MYNAME
<=====
//PH01S01 EXEC PGM=IKJEFT01,DYNAMNBR=20,COND=
(4,LT)
//SYSTSPRT DD
SYSOUT=*
//SYSTSIN DD
*
DSN SYSTEM
(DBSN)
RUN PROGRAM(COBPROG) PLAN(NACPLN) -

PARMS('INPUT') -

LIB
('MYDB.TRNSCTN.LOADLIB')
//SYSPRINT DD
SYSOUT=*
//SYSUDUMP DD
SYSOUT=*
//INFILE DD DSN=MYDB(&INPUT),DISP=SHR
//ERRLST DD
SYSOUT=P,DCB=RECFM=F,FCB=L56
The program (cobprog) is that when I run the job ,if PARMS
('&INPUT') returns :&INPUT and
if PARMS(&INPUT) returns :null
i need "myname" to the cobol/db2 program and name of the
member (DSN=MYDB(&INPUT),DISP=SHR)
Do you think helpe me?
Thanks

Is This Answer Correct ?    6 Yes 4 No

How can we pass data from cobol to JCl?..

Answer / mr2981

by using file we can pass data ,by using return code

Is This Answer Correct ?    9 Yes 14 No

How can we pass data from cobol to JCl?..

Answer / gigish thomas

create a Symbolic Parameter in jcl woith out goiving any
value.In the job step passthis symbolic parameter through
PARM parameter to cobol program.in the linkage section of
the cobol program assign the value/string to the symbolic
variable. It will automatically reflect to the symbolic
variable which was defined in JCL program.

Is This Answer Correct ?    4 Yes 18 No

How can we pass data from cobol to JCl?..

Answer / vip

By using the parm parameter in jcl and defining the
datanames in the linkage section of the cobol program.

Is This Answer Correct ?    9 Yes 30 No

Post New Answer

More COBOL Interview Questions

What do you understand by psb and acb?

0 Answers  


i want a program using by if, evaluate , string, unstring, perform, occurs?

1 Answers  


In an EVALUTE statement is the order of the WHEN clauses significant?

4 Answers  


Difference between file status codes 02 and 22.... since both are for duplicate key detection.

1 Answers  


How to Pass table from a cobol program to another cobol program and how to use that table in called program

8 Answers   Patni, SunGard,


WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR LRECL OF FIXED ONE AS 80 AND 2ND RECORD AS 132. WHAT WE NEED TO DECLEAR LRECL FOR THOSE 2 FILES IN JCL?

4 Answers   iGate,


can we write paragraph in area B .....

4 Answers   L&T,


How many bytes do a s9 (7) comp-3 field occupy?

1 Answers  


Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?

2 Answers   TCS,


i am a btech cs 2009 passout. i am opting for mainframe course. is it good to do this course? pls. anyone suggest me

4 Answers  


what are the utilities for load and unload the DB2 tables

1 Answers   L&T,


How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?

1 Answers  


Categories