View previous topic :: View next topic
Author
Message
harinatha New User Joined: 24 Jul 2005Posts: 28
Hi,
Using IDCAMS utility, can we create non vsam file.
if yes, can any one give the jcl for that.
Thanks & Regards
Hari.
Back to top
sril.krishy Active User Joined: 30 Jul 2005Posts: 183 Location: hyderabad
Hi Hari,
Try the below code to create an FB or VB file.You can change the file characters as per your requirement.
//STEP010 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//IN DD *
//OUT DD DSN=xxx.yy.zzz,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(X,Y),RLSE),
// LRECL=ZZZ,RECFM=FB
//SYSIN DD *
REPRO IFILE(IN) OFILE(OUT)
/*
Thanks
Krishy
Back to top
harinatha New User Joined: 24 Jul 2005Posts: 28
Thanks Krishy...
Back to top
crrindia Active User Joined: 02 Jul 2005Posts: 124 Location: Gurgaon
Hi Krishy, actually hari is asking that by using idcams can we create a non vsam file or not. if yes, then he is asking that jcl. but you have given the jcl is to copy a data from one file to another.
krishy if you don't mind why don't you give that jcl? because right now i have no idea on that.
thanks,
Rathna Reddy.
sril.krishy wrote:
Hi Hari,
Try the below code to create an FB or VB file.You can change the file characters as per your requirement.
//STEP010 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//IN DD *
//OUT DD DSN=xxx.yy.zzz,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(X,Y),RLSE),
// LRECL=ZZZ,RECFM=FB
//SYSIN DD *
REPRO IFILE(IN) OFILE(OUT)
/*
Thanks
Krishy
Back to top
Rajr New User Joined: 18 Aug 2005Posts: 4
Hi,
Here is the jcl to create non-vsam dataset using IDCAMS utility
//USERIDC JOB (ACCTNO),'TESTJCL',
// MSGCLASS=T,CLASS=S,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IDCAMS
//TESTDD DD DSN=USERID.TEST.TEST,DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(2,2)),DCB=(RECFM=FB,BLKSIZE=0,LRECL=80)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//
Regards,
Ram
Back to top
Please enable JavaScript!