IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Reformat the output field


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Roland_Achtsnit

New User


Joined: 30 Jul 2006
Posts: 14

PostPosted: Sun Jan 07, 2007 8:33 pm
Reply with quote

Hello

I have this output file: (FB/240)

Code:

0LEN=0163  TOD=090619  DATE=07/01/04  ID=13  NAME=MWE
bLEN=0171  TOD=073000  DATE=07/01/05  ID=13  NAME=MWE


Now I want to reformat this file that only contains this information:

Code:

FROM DATE=07/01/04  TOD=090619
TO   DATE=07/01/05  TOD=073000 


Could anyone help me please.
Roland
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Jan 07, 2007 11:14 pm
Reply with quote

Great, that makes it easy....
So all the data for an output line in on the input line?
If so, sort or copy and reformat during either the input or output phase.
Output to file or print (with or without headings and page breaks).
Do you have a sort manual?
Back to top
View user's profile Send private message
Roland_Achtsnit

New User


Joined: 30 Jul 2006
Posts: 14

PostPosted: Mon Jan 08, 2007 1:06 am
Reply with quote

I looked at a SORT manuel with your information of sort or copy and
reformat

In the attachment is my JCL

Thanks Bill

May be it is a way to format this records easier, but I'm happy to create
this JCL.

Roland
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jan 08, 2007 1:50 am
Reply with quote

Does that mean it worked for you?
Back to top
View user's profile Send private message
Roland_Achtsnit

New User


Joined: 30 Jul 2006
Posts: 14

PostPosted: Mon Jan 08, 2007 2:02 am
Reply with quote

Yes it works fine.

Thanks

Roland
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Mon Jan 08, 2007 10:38 pm
Reply with quote

Roland,

Here's a DFSORT job that will do what you asked for in your first post:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (FB/240)
//SORTOUT DD DSN=...  output file (FB/240)
//SYSIN    DD    *
  OPTION COPY
  INREC IFOUTLEN=240,
    IFTHEN=(WHEN=INIT,
      BUILD=(C'FROM ',24,15,12,10,241:SEQNUM,1,ZD)),
    IFTHEN=(WHEN=(241,1,ZD,EQ,+2),
      OVERLAY=(1:C'TO  '))
/*
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts XDC SDSF output to temp dataset CLIST & REXX 4
Search our Forums:

Back to Top