0

I have a flat file with some useful data along with timestamp on each record. Inorder to create a report, I need data of last month ONLY for my further analysis. With out using a cobol source code, REXX EXECs I need to filter out last month's data using DFSORT. Hope my question is clear.

Note: I use JOBTRAC scheduler. Using JOBTRAC parameters, I can dynamically allocate values and filter out data, but dont want to make use of them.

4

1 に答える 1

1

考えられる答えは次のとおりです。

//STEP01  EXEC PGM=SORT,REGION=0M
//SYSOUT    DD SYSOUT=*
//SORTIN    DD DSN=INPUT.DATASET,DISP=SHR
//SORTOUT   DD DSN=OUTPUT.DATASET,DISP=NEW
//SYSIN     DD *
   INCLUDE COND=(001,007,EQ,DATE2(-)-1)
/*

私は次のことを想定しています。

  1. タイムスタンプは位置 1 から始まります
  2. タイムスタンプは英数字です
  3. タイムスタンプは YYYY-MM-DD で始まります
  4. 「先月」は当月の前月
于 2011-08-07T16:46:44.327 に答える