|
View previous topic :: View next topic
|
| Author |
Message |
Pavani G
New User
Joined: 21 Apr 2010 Posts: 10 Location: Hydearabad
|
|
|
|
Hi,
I have the record format as follows.
00000430001 1070625 07702 RCL 1070618 2009-03-01 0 . 03 09
13-19 and 42-51 position are date fields.
i need to comare these two date fields.
13-19 pos date format is CYYMMDD
if C=1(13 th position) then i should take it as '20' and if C='0' then it will be '19'.
i need to compare this field with YYYY-MM-DD (42-51 position).
how can i do this using DFSORT or ICETOOL. |
|
| Back to top |
|
 |
Ketan Varhade
Active User

Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
| Which sort Utility are you using in your shop? |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
Because the solution for sort related questions may vary from product to product, please ensure that you state clearly which sort product you are using.
If you are not sure, then by running a simple sort step shown below, you will be able to find out for yourself.
If the messages start with ICE then your product is DFSORT. Please also post the output of the complete line which has a message code ICE201I, as this will enable our DFSORT experts to determine which release of DFSORT that you have installed. This may also affect the solution offered.
If the messages start with WER or SYT then the product is SYNCSORT and the topic will be moved into the JCL forum by one of the moderators. Please also post the information telling which version of SYNCSORT is installed, as this may also affect the solution offered.
Thank you for taking your time to ensure that the valuable time of others is not wasted by offering inappropriate solutions which are not relevant due to the sort product being used and/or the release that is installed in your site.
| Code: |
//SORTSTEP EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
ABC
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY |
|
|
| Back to top |
|
 |
Pavani G
New User
Joined: 21 Apr 2010 Posts: 10 Location: Hydearabad
|
|
|
|
I am using DFSORT.
below is the o/p of sort you have given.
ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED
ICE250I 0 VISIT www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R10 - 04:33 ON WED JU
SORT FIELDS=COPY
ICE201I F RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE751I 0 C5-K48846 C6-K90014 C7-K45047 C8-K46331 E9-K47759 C9-BASE E5-K48846
ICE193I 0 ICEAM1 INVOCATION ENVIRONMENT IN EFFECT - ICEAM1 ENVIRONMENT SELECTED
ICE252I 1 PARMLIB OPTIONS WERE MERGED WITH INSTALLATION MODULE DEFAULTS
ICE088I 0 SRTJOB .SORTSTEP. , INPUT LRECL = 80, BLKSIZE = 80, TYPE = FB
ICE093I 0 MAIN STORAGE = (MAX,6291456,6278238)
ICE156I 0 MAIN STORAGE ABOVE 16MB = (6200798,6200798)
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,ERE
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=N,TEXIT=N,LISTX=N,EFS=NONE ,EXITC
ICE133I 0 OPTIONS: HIPRMAX=OPTIMAL,DSPSIZE=MAX ,ODMAXBF=0,SOLRF=Y,VLLONG=N,VSAMI |
|
| Back to top |
|
 |
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
Pavani G,
You haven't told us what you need to do after comparing the 2 dates? what is the LRECL and RECFM of the input and output datasets? |
|
| Back to top |
|
 |
Pavani G
New User
Joined: 21 Apr 2010 Posts: 10 Location: Hydearabad
|
|
|
|
| i need to accumulate records with unequal dates into output file. both the input and output files are FB with 80 byte length. |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
| Quote: |
| i need to accumulate records with unequal dates into output file. |
It's not clear what you mean by this. "Accumulate records" - what does that mean exactly? Do you mean you want a count of the number of records with unequal dates, or a total of some field in the records (which field), or what? You need to describe your requirement in a way that people can understand before anyone can help you.
Please show an example of the records your input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|