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

add date & time


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

New User


Joined: 16 Aug 2005
Posts: 54

PostPosted: Fri Jun 20, 2014 9:22 am
Reply with quote

I have a file with one record (date & time), FB 15, and i would like to add this record to left side of all entries from another file.
Could someone suggest some DFSort way to do that, please ? Thanks
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jun 20, 2014 11:24 am
Reply with quote

Generate one or more DFSORT Symbols from the single-record file. Use the symbols thus generated everywhere you need them.
Back to top
View user's profile Send private message
knobi

New User


Joined: 16 Aug 2005
Posts: 54

PostPosted: Fri Jun 20, 2014 11:43 am
Reply with quote

i'm trying to use JOINKEYS and REFORMAT ...
but i'm getting rc=20
Back to top
View user's profile Send private message
knobi

New User


Joined: 16 Aug 2005
Posts: 54

PostPosted: Fri Jun 20, 2014 11:44 am
Reply with quote

not sure if JOINKEYS and REFORMAT works when the amount of records on both files are different ..
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jun 20, 2014 12:46 pm
Reply with quote

Show your sysout. In the Code tags. We can't just guess what you've got.

JOINKEYS is a big hammer in this case, and you only have a little nut to crack, but it will work.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Fri Jun 20, 2014 12:48 pm
Reply with quote

If are facing error you need to show us the SYSOUT

Can you show us the job and the sysout withing code tags?
Back to top
View user's profile Send private message
knobi

New User


Joined: 16 Aug 2005
Posts: 54

PostPosted: Fri Jun 20, 2014 1:27 pm
Reply with quote

i was doing wrong with the JOINKEYS.. that's why i was getting this error...
ICE405A 0 JOINKEYS STATEMENTS HAD MISMATCH IN NUMBER, LENGTH OR ORDER OF KEYS..... anyway i have changed the JCL some times since the error... and so far nothing ..

if anyone could point me to an example of ICETOOL using JOINKEYS where there is only one record in the first file (FB80), several records on the second one (FB80)..... and they successfuly put the content of the first file before each record of the second one.. i would appreciate...
Back to top
View user's profile Send private message
knobi

New User


Joined: 16 Aug 2005
Posts: 54

PostPosted: Fri Jun 20, 2014 1:58 pm
Reply with quote

just found.. it worked.. thanks
www-01.ibm.com/support/knowledgecenter/SSLTBW_1.12.0/com.ibm.zos.r12.icea100/ice1ca50124.htm%23wq962?lang=en
Back to top
View user's profile Send private message
wiprov

New User


Joined: 13 Feb 2008
Posts: 15
Location: Chennai

PostPosted: Mon Jun 23, 2014 7:12 pm
Reply with quote

Could you please share your code?
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top