Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to include the todays date records using DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Mudassir Ansari

New User


Joined: 06 Nov 2007
Posts: 16
Location: Hyderabad

PostPosted: Wed Nov 05, 2008 6:50 pm    Post subject: How to include the todays date records using DFSORT
Reply with quote

Hi!
I want to include the todays date i.e., yymmdd format present at 27th position (Char) from the input flat file. It has previous dates also.

Regards,
Ansari
Back to top
View user's profile Send private message

Mudassir Ansari

New User


Joined: 06 Nov 2007
Posts: 16
Location: Hyderabad

PostPosted: Wed Nov 05, 2008 7:22 pm    Post subject: Reply to: How to include the todays date records using DFSOR
Reply with quote

Hi,

I have an input file which is an FB LRECL as 1024.

Regards,
Mudassir.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Nov 05, 2008 9:24 pm    Post subject:
Reply with quote

Hello Mudassir and welcome to the forum,

Please post some sample input data (not the full 1024, but the relevant positions) and the output you want from the sample input.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Nov 05, 2008 11:05 pm    Post subject:
Reply with quote

Ansari,

I answered this same question offline for you. Please don't post and send me notes offline. Do one or the other. Here's the job I gave you offline based on your attempt at using ICETOOL:

Code:

//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=TTOI.VAVX.TEMP.LIST,DISP=SHR
//OUT1 DD DSN=TTOI.VAVX.TEMP.LIST.OUTPUT1,DISP=(NEW,CATLG,DELETE),
//         SPACE=(CYL,(5,5))
//TOOLIN DD *
COPY FROM(IN1) TO(OUT1) USING(CTL1)
/*
//CTL1CNTL DD *
  INCLUDE COND=(27,6,Y2T,EQ,Y'DATE1')
/*
Back to top
View user's profile Send private message
Mudassir Ansari

New User


Joined: 06 Nov 2007
Posts: 16
Location: Hyderabad

PostPosted: Fri Nov 07, 2008 11:52 am    Post subject: Reply to: How to include the todays date records using DFSOR
Reply with quote

Thanks Frank...Its working fine..
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us