can any one plzzzzzz tell the jcl code for creating ps
using idcams

Answers were Sorted based on User's Feedback



can any one plzzzzzz tell the jcl code for creating ps using idcams..

Answer / bejjanki

Why you want to use "IDCAMS" when "IEFBR14" Utility is
already available.

IEFBR14 - Is used to create only files(PS/PDS).

//Jobcard
//STEP EXEC PGM=IEFBR14
//DD1 DD DSN=KK.PS.FILE,DISP=(,CATLG,DELETE),
// SPACE=(TRK,(10,2),RLSE),
// DCB=(LRECL=80,BLKSIZE=800,RECFM=FB),
//

Let me know if any concerns.

Is This Answer Correct ?    8 Yes 1 No

can any one plzzzzzz tell the jcl code for creating ps using idcams..

Answer / harsha

//STEP001 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//DD1 DD DSN=...,DISP=...,
// DCB=...,UNIT=...,SPACE=...
//SYSIN DD DUMMY

Is This Answer Correct ?    6 Yes 4 No

Post New Answer

More JCL Interview Questions

If the COND parameter is specified in both the JOB and EXEC statements, which one will take precedence? If JOB takes priority and if all the conditions evaluate to false, then will the conditions on the EXEC step be evaluated next?

4 Answers   Wipro,


what are the symbolic parameters? why do we use symbolic parameters ?

2 Answers   IBM, TCS, UST, Xansa,


i have a file which contains duplicates ? my requirement is to eliminate duplicates and these elminated duplicates should be moved to another file can any code this using sort ?

3 Answers   IBM,


What is dummy parameter in JCL??

3 Answers   TCS,


Can we use DISP=SHR in output file in JCL

0 Answers  






What is the difference between a symbolic and an override in executing a PROC?

2 Answers  


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

0 Answers  


Which dd parameters are required?

0 Answers  


What is the function of the dd dcb keyword?

0 Answers  


what is alternate index?

1 Answers  


How many types we can give input to JCL

5 Answers   UHG,


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

1 Answers   Tesco,


Categories