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
 
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

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