ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  MainFrame  >>  IBM MainFrame  >>  JCL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
 Assembler interview questions  Assembler Interview Questions
 CLIST interview questions  CLIST Interview Questions
 QMF interview questions  QMF Interview Questions
 MVS interview questions  MVS Interview Questions
 OS390 interview questions  OS390 Interview Questions
 OS 2 interview questions  OS 2 Interview Questions
 VSAM interview questions  VSAM Interview Questions
 QSAM interview questions  QSAM Interview Questions
 Sysplex interview questions  Sysplex Interview Questions
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions
Question
can we give instream data in procedure
 Question Submitted By :: Hariprasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: can we give instream data in procedure
Answer
# 1
procedure are two types 1) instream and 2) catlog
 we can give instream data up to 15 level may be like that 
it might be possible,

   if any one know correctly please post
 
Is This Answer Correct ?    1 Yes 2 No
Chowdary
 
  Re: can we give instream data in procedure
Answer
# 2
Instream data is the Paratmeter we pass through SYSIN 
Catalog Procedure does'nt take Instream data 
Example
//NEWPROC  PROC
//ABCPGM   EXEC PGM=IDCAMS 
//SYSOUT    DD SYSOUT=*
//SYSPRINT  DD SYSOUT=*
//INDD1     DD DSN=ABC.XYZ.DSP,DISP=SHR
//OUTDD1    DD DSN=PQR.XYZ.NOP,DISP=SHR
//SYSIN     DD *
REPRO  INDD(INDD1) –
      OUTDD(OUTDD1)
/*
It will fail 

Instead use 

//SYSIN     DD   DSN=ABC.DFG.PARM,DISP=SHR
/*

Put the following in this data set ABC.DFG.PARM
REPRO  INDD(INDD1) –
      OUTDD(OUTDD1)

It will run fine
 
Is This Answer Correct ?    0 Yes 0 No
Abhijit18in2002
 
 
 
  Re: can we give instream data in procedure
Answer
# 3
We can not!!
 
Is This Answer Correct ?    0 Yes 0 No
Sroul4
 

 
 
 
Other JCL Interview Questions
 
  Question Asked @ Answers
 
What is the purpose of include statement in a JCL?  1
If job is submitted with typerun = hold then how can we submit the same job? Wipro2
i am trying to copy a PS file into VSAM file in step2 by using PGM=IDCAMS,COND=(0,LT) and the pS file is getting sorted in the step1. I got the return code 00 for step1 but step2 got flushed. can u please help on this. Below is My JCL. SEPP050 EXEC PGM=SORT,REGION=6144K SYSIN DD DSN=SYSCMN.PROD.CCLIB (F5910BNN), DISP=SHR SYSOUT DD SYSOUT=* SYSUDUMP DD SYSOUT=A SORTIN DD DSN=Z1225BT.F5910EPP.HISOUT, DISP=SHR SORTOUT DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT5, DISP= (NEW,CATLG,DELETE),UNIT=DELQ, SPACE=(CYL, (500,500),RLSE), DCB= (RECFM=FB,LRECL=1606,BLKSIZE=16060,BUFNO=15) SORTWK01 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK02 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK03 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK04 DD UNIT=SYSDA,SPACE=(CYL, (1)) SYSIN1 DD UNIT=VIO,SPACE= (80,1) * SEPP060 EXEC PGM=IDCAMS,COND= (0,LT) SYSPRINT DD SYSOUT=* SYSOUT DD SYSOUT=* SYSLIST DD SYSOUT=* *** DD01 DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT, // DISP=SHR //*** //DD01O DD DSN=Z1225BT.F5910PHS, // DISP=SHR, // AMP=(AMORG,'BUFND=12,BUFNI=5') //SYSIN DD DSN=SYSCMN.PROD.CCLIB(F5910BBB), // DISP=SHR Output RC for the two steps: SDCBPJ05 SEPP050 00 236 .00 .00 .0 SDCBPJ05 SEPP060 FLUSH 0 .00 .00 .0  1
My requirement is : How to populate a empty PS/flat file with ONLY spaces in the first line. You should not use any input dataset to do this. I'm not sure whether you may use any utility for this purpose? HCL1
There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and not using any Restart and IF/THEN/ELSE parameter?  6
Can we create VSAM file by using IEBGENER? Principal-Finance2
if we are specifing joblib as well as steplib in job then at the time of execution how the process will complete  4
My JOB contains three steps. //STEP1 EXEC PGM=ABC //STEP2 EXEC PGM=DEF //STEP3 EXEC PGM=GHI My Question is 1) I want to execute second step only. How will do. 2) Soppose U consider above three steps are in PROC steps and I want execute the PROC second step only? How to execute the second step only. During exection time its creating any ABEND? Please let me know..........  2
Can I concatenate various datasets whose organization are different from each other. Lets say I want to cancatenate a PDS file, a PS file, a GDG file etc. Can You do that ?? If yes, how ? is there any separate Utility to do so ???  4
What is a Proc ? why do we go for a Proc ? What are the types of procs?Can we have nesting in Procs ? Xansa9
What is a S0C4 error ?  2
IN MY JCL I VE 8 STEPS I WANT TO EXCUTE STEP 8 FIRST THEN EXCUTE STEP 4 ,HOW WILL EXCUTE STEP 8 BEFORE STEP 4? IGT5
How much space OS allocates when you create a PS or PDS?  2
i have 1000 records in input file and i want to sort it and the first 200 records to be placed in output file. how to do that?? L&T9
What does a disposition of (NEW,CATLG,DELETE) mean?  2
How many positional parameters are there in job statement?  3
How do you skip a particular step in a proc/JOB? CSC3
Can we Execute a job without specifying Job Name in the Job Card?  2
How can I write the joblog in the spool on normal end of a job step and direct the joblog to a dataset only if the step abends?  2
If i have defined an temperory dataset in step2, how can i call back or use the same dataset in step5 of the same job UST4
 
For more JCL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com