Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Display Last Week's Date in each Record using Syncsort(V1.2)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Display Last Week's Date in each Record using Syncsort(V1.2)
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Mon Apr 27, 2009 7:19 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us