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
 

 

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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 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 Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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