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 How to display offset thru cobol prog... tvinodkumar7 CICS 2 Sun Apr 22, 2018 8:42 pm
No new posts VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts how to display APL characters? Pedro TSO/ISPF 6 Wed Mar 14, 2018 5:07 am
No new posts Copying only first and last word from... chandan.inst SYNCSORT 4 Wed Jan 31, 2018 4:19 pm

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