IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Display Last Week's Date in each Record using Syncsort(V1.2)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Raghuraman_New

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Mon Apr 27, 2009 5:42 pm
Reply with quote

Hi ,
I ve included only the Last One week's Data from the input data file using the below cntlcard,

INCLUDE COND=(1,18,BI,LE,&DATE4,AND,1,18,BI,GT,&DATE4-7)

This works fine for me icon_lol.gif . But i need to display the Last week's date along with each input record.

Suppose Current Date :- 27-04-2009

Output Record :-

20-04-2009 Input data1
20-04-2009 Input data2
20-04-2009 Input data3
.
.
.

I tried using the cntlcard,

OUTREC FILELDS=(1:&Date4-7,19:Input data)

but it shows me "Syntax error" in OUTREC statement.
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Mon Apr 27, 2009 6:43 pm
Reply with quote

i think the date4 is 19 long.. so u need to start the next column from 20..

i.e.
Code:

OUTREC FILELDS=(1:&Date4-7,20:Input data)
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Apr 27, 2009 7:19 pm
Reply with quote

Quote:
but it shows me "Syntax error" in OUTREC statement.

Please post the sysouts......
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top