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 find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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