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
 

 

ICETOOL temporary dataset to handle VB input file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Thilagam Palani

New User


Joined: 31 Oct 2014
Posts: 1
Location: India

PostPosted: Tue Nov 04, 2014 2:40 pm    Post subject: ICETOOL temporary dataset to handle VB input file
Reply with quote

hi, ca anyone guide me for the below issue
i have 2 input file
File1 : date file FB
File 2: data file VBA
i want to create o/p file with header date from date file, data and trailer
i have blow icetool,
Code:

TOOLIN DD *
COPY FROM(DATE) TO (TEMPFL1) USING HDR1
COPY FROM(DATA ) TO (TEMPFL1) USING DATA
COPY FROM(TEMPFL1) TO (OUT) USING(TRL1)

HDR1CNTL DD *
INREC FIELDS = (1,5,PD,TO=ZD,LENGTH=8)
OUTREC FIELDS=(1:1,8)
DATACNTL DD *
OUTFILE FNAMES=OUT
TRL1CNTL DD *
OUTFILE FNAMES=OUT,REMOVECC,
TRAILER=(1:'TRL')

I am getting error message saying invalid dataset attribute tempfl1 FB
please suggest.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 04, 2014 3:28 pm    Post subject:
Reply with quote

I have inserted the code tags for you. Please learn quickly to use them yourself because it makes things much easier to read.

You need to convert the FB file to a VB file - there are just sooooo many examples on the forum, so have a play with the search facility on the forum.

Also, you will need to post the JCL and output from the failing run so we know exactly what is happening.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Nov 04, 2014 3:49 pm    Post subject: Reply to: ICETOOL temporary dataset to handle VB input file
Reply with quote

Just use SORT. Two steps. First create a symbol/SYMNAME from the date file. Tiny step, you won't have a chance to notice it running.

Second step, use symbol in HEADER1, use TRALIER1 for the "TRL".

Search the forum for examples of the date-to-symbol.
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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