View previous topic :: View next topic
Author
Message
useit Active User Joined: 05 Oct 2006Posts: 152
i have two files. in first file position 1,10 i have date field.
second file 1-20 i have store/tpn number.
i want to overlay date form the first file at the end of each record of the second file
file 1:(lrecl 10)
2010-10-10
file 2: (lrecl 20)
11111111119999999999
22222222228888888888
output should be:
111111111199999999992010-10-10
222222222288888888882010-10-10
i know thru splice (icetool) we can achieve this.but can this be achieved without using icetool?
Back to top
vasanthz Global Moderator Joined: 28 Aug 2007Posts: 1742 Location: Tirupur, India
Quote:
without using icetool?
Do you want to do it in some other programming language like COBOL REXX or SAS?
Back to top
Escapa Senior Member Joined: 16 Feb 2007Posts: 1399 Location: IL, USA
useit wrote:
i know thru splice (icetool) we can achieve this.but can this be achieved without using icetool?
Yes. Thats the answer..
You need to tell us your dfsort level to get appropriate solution which will work for you.
Use this post www.ibmmainframes.com/viewtopic.php?t=33389 to find out your DFSORT level and LET FORUM KNOW..
Back to top
useit Active User Joined: 05 Oct 2006Posts: 152
vasanth/escapa
i want this to be acheived using DFSORT.
(ICETOOL IS NOT PREFERRED IN OUR PROJECT. (EVEN JOINKEYS(syncsort) IT DOESNT SUPPORT.
please help me regarding the same
regds,
useit
Back to top
Escapa Senior Member Joined: 16 Feb 2007Posts: 1399 Location: IL, USA
Back to top
useit Active User Joined: 05 Oct 2006Posts: 152
escapa,
please find the sysout results:
Display Filter View Print Options Help
-------------------------------------------------------------------------------
SDSF OUTPUT DISPLAY XK00F JOB02889 DSID 103 LINE 0 COLUMNS 01- 80
COMMAND INPUT ===> SCROLL ===> CSR
********************************* TOP OF DATA **********************************
1ICE805I 1 JOBNAME: XK00F , STEPNAME: S1
ICE802I 0 BLOCKSET TECHNIQUE IN CONTROL
ICE201I G RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE751I 0 C5-K51707 C6-K51707 C7-K54603 C8-K51707 E9-K51707 C9-BASE E5-K55337
ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED
ICE250I 0 VISIT www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES A
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R10 - 08:33 ON FRI J
0 OPTION COPY
ICE201I G RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE751I 0 C5-K51707 C6-K51707 C7-K54603 C8-K51707 E9-K51707 C9-BASE E5-K55337
ICE142I 0 SRTMSGE NOT FOUND - SYSOUT USED
ICE193I 0 ICEAM1 INVOCATION ENVIRONMENT IN EFFECT - ICEAM1 ENVIRONMENT SELECTED
ICE088I 0 XK00F .S1 . , INPUT LRECL = 80, BLKSIZE = 80, TYPE = FB
ICE093I 0 MAIN STORAGE = (MAX,6291456,6278910)
ICE156I 0 MAIN STORAGE ABOVE 16MB = (6200798,6200798)
ICE127I 0 OPTIONS: OVFLO=RC0 ,PAD=RC0 ,TRUNC=RC0 ,SPANINC=RC16,VLSCMP=N,SZERO=Y
ICE127I 0 OPTIONS: OVFLO=RC0 ,PAD=RC0 ,TRUNC=RC0 ,SPANINC=RC16,VLSCMP=N,SZERO=Y
ICE128I 0 OPTIONS: SIZE=6291456,MAXLIM=1048576,MINLIM=450560,EQUALS=N,LIST=Y,ER
ICE129I 0 OPTIONS: VIO=N,RESDNT=ALL ,SMF=FULL ,WRKSEC=Y,OUTSEC=Y,VERIFY=N,CHALT
ICE130I 0 OPTIONS: RESALL=4096,RESINV=0,SVC=109 ,CHECK=Y,WRKREL=Y,OUTREL=Y,CKPT
ICE131I 0 OPTIONS: TMAXLIM=6291456,ARESALL=0,ARESINV=0,OVERRGN=65536,CINV=Y,CFW
ICE132I 0 OPTIONS: VLSHRT=N,ZDPRINT=Y,IEXIT=Y,TEXIT=Y,LISTX=N,EFS=NONE ,EXIT
ICE133I 0 OPTIONS: HIPRMAX=OPTIMAL,DSPSIZE=60 ,ODMAXBF=0,SOLRF=Y,VLLONG=N,VSAM
ICE235I 0 OPTIONS: NULLOUT=RC0
ICE084I 0 BSAM ACCESS METHOD USED FOR SORTOUT
ICE084I 0 BSAM ACCESS METHOD USED FOR SORTIN
ICE889I 0 CT=MAX , SB=4, L=0, D=0000, CCW=1MAM
ICE902I 0 O AZ00 I AZ00
ICE751I 1 EF-K49535 F0-K49038 E8-K51707
ICE900I 0 CON=1,MUV=0,VOL=1,ENU=0,SBK=0,SRC=0,VEM=0
ICE090I 0 OUTPUT LRECL = 80, BLKSIZE = 80, TYPE = FB
ICE055I 0 INSERT 0, DELETE 0
ICE054I 0 RECORDS - IN: 1, OUT: 1
ICE891I 1 6270432 WMAIN, 8472 CMAIN, MAX CALLOC, N SCN, B BA, 0 AZ, 0 BZ, YY QC
ICE892I 1 80 RIN 80 BLI 80 BLO 78 RUN 0 BUN 2094 CPU 00 CVC
ICE893I 1 0 XIN 0 WIN 0 GIN NDEN PFP B6D CM000 CIX UPTH LMD VS RUX
ICE052I 0 END OF DFSORT
*******************************
Back to top
dbzTHEdinosauer Global Moderator Joined: 20 Oct 2006Posts: 6966 Location: porcelain throne
Quote:
You need to tell us your dfsort level to get appropriate solution which will work for you.
Back to top
dbzTHEdinosauer Global Moderator Joined: 20 Oct 2006Posts: 6966 Location: porcelain throne
Back to top
Frank Yaeger DFSORT Developer Joined: 15 Feb 2005Posts: 7129 Location: San Jose, CA
Quote:
i want this to be acheived using DFSORT.
(ICETOOL IS NOT PREFERRED IN OUR PROJECT. (EVEN JOINKEYS(syncsort) IT DOESNT SUPPORT.
please help me regarding the same
I don't know what you mean by "EVEN JOINKEYS (syncsort) IT DOESNT SUPPORT". Your level of DFSORT DOES support JOINKEYS.
Back to top
useit Active User Joined: 05 Oct 2006Posts: 152
dbzTHEdinosauer,
if i know the exat value then i can append using below sort card.
Code:
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=in. file,DISP=SHR
//SORTOUT DD DSN=OUT.file,DISP=SHR
//SYMNAMES DD *
DATA1,'2010-04-29'
//SYSIN DD *
INREC OVERLAY=(21:DATA1)
SORT FIELDS=COPY
but in my case i wont be knowing the exact date. date will change everyday. so whatever date from the input file(position 1, 10) i have to append it.
regds,
useit
Back to top
gcicchet Senior Member Joined: 28 Jul 2006Posts: 1702 Location: Australia
Hi,
try this
Code:
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD * INPUT FILE1
2010-10-10
/*
//SORTOUT DD DSN=&&S1,UNIT=SYSDA,SPACE=(TRK,(1,1)),DISP=(,PASS)
//SYSIN DD *
OPTION COPY
INREC BUILD=(C'NDATE,''',1,10,C'''',80:X)
/*
//S2 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYMNAMES DD DSN=&&S1,DISP=(OLD,PASS)
//SYMNOUT DD SYSOUT=*
//SORTIN DD * INPUT FILE2
11111111119999999999
22222222228888888888
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OUTREC BUILD=(1,20,NDATE)
/*
Gerry
Back to top
useit Active User Joined: 05 Oct 2006Posts: 152
gcicchet,
have tried that jcl and its working fine:)
thanxx a lot gcicchet:)
regds,
useit
Back to top
Please enable JavaScript!