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
 

 

Reformat the output field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Reformat the output field
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: 3158
Location: Tucson AZ

PostPosted: Sun Jan 07, 2007 11:14 pm    Post subject:
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    Post subject: Re: Reformat the output field
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: 3158
Location: Tucson AZ

PostPosted: Mon Jan 08, 2007 1:50 am    Post subject:
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    Post subject:
Reply with quote

Yes it works fine.

Thanks

Roland
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: Mon Jan 08, 2007 10:38 pm    Post subject:
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    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 Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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