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
 
Sort card required for : with specific date formats

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

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Thu Mar 12, 2009 5:50 pm    Post subject: Sort card required for : with specific date formats
Reply with quote

Dear Experts,

Requirement:

Sort card to write the following 3 lines to a new output file say PROD.DBEXT.CM1100D.NDMCARD.

This job runs daily.

The last parameter (date format) in the file-name should be changed automatically.


&IDSN1='PROD.DBEXT.CM1100D.D031209' -
&ODSN1='icausr_234_cap_20090312.txt'
SIGNOFF
Back to top
View user's profile Send private message

Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Thu Mar 12, 2009 9:11 pm    Post subject:
Reply with quote

mkk157,

The following DFSORT JCL will give you the desired results

Code:

//STEP0100 EXEC PGM=SORT                                 
//SYSOUT   DD SYSOUT=*                                   
//SORTIN   DD *                                         
&IDSN1='PROD.DBEXT.CM1100D.D031209' -                   
&ODSN1='ICAUSR_234_CAP_20090312.TXT'                     
SIGNOFF                                                 
//SORTOUT  DD SYSOUT=*                                   
//SYSIN    DD *       
  SORT FIELDS=COPY                                             
  INREC IFOUTLEN=80,                                           
  IFTHEN=(WHEN=(1,6,CH,EQ,C'&IDSN1'),OVERLAY=(29:DATENS=(MDY))),
  IFTHEN=(WHEN=(1,6,CH,EQ,C'&ODSN1'),OVERLAY=(24:DATE1))       
/*
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm

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