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
 

 

Want to copy an input file with VB to another file with VB

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

New User


Joined: 20 Oct 2004
Posts: 59

PostPosted: Mon Sep 18, 2006 6:06 pm    Post subject: Want to copy an input file with VB to another file with VB
Reply with quote

Hi All,

I want to copy an input file say A.B.C in VB format to A.B.C (same as input file) again in VB format.
I am having a criteria like at some position i am replacing the parameters using OUTREC like (01:01,96,C'2006-09-25',107,3994).

I am using to SORT to acheive this but the job is failing everytime.

Suppose the VB length is say 4100 bytes and in the input file only first 200 chars are having some value, the i am getting an error like :
"200 bytes defined for input not matching Output 3993".

Can anyone help me in resolving the issue or suggest alternate solution for the same.
And for empty input file i am not facing any problem.

Regds
Sunny
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 Sep 18, 2006 8:44 pm    Post subject:
Reply with quote

You need to show all of the //SYSOUT messages for the jobs you want help with.
Back to top
View user's profile Send private message
sunnyk

New User


Joined: 20 Oct 2004
Posts: 59

PostPosted: Tue Sep 19, 2006 6:14 pm    Post subject:
Reply with quote

I achieved the same in 3 steps with VB to FB, SORT and back to VB. But i would really appreciate if someone can help me in getting the same result in single step.

I guess i made my requirement clear.

And Frank, i was getting error related to length only. Like i said if input file has 196 bytes in the first record, the error 'll be like:

"200 bytes defined is less than the 4100 length for the fields".

Regds
Sunny
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: Tue Sep 19, 2006 8:49 pm    Post subject:
Reply with quote

Quote:
I guess i made my requirement clear.


It may be clear to you since you can see your jobs and the messages, but it isn't clear to me.

It's difficult to help you when we don't have the entire picture. If you want help, you need to show your original failing job with ALL of the messages from //SYSOUT (not just the error message), and your new three step job.

Of course, if you're using Syncsort (WER messages) rather than DFSORT (ICE messages), then I can't help.
Back to top
View user's profile Send private message
vishal_a

New User


Joined: 24 May 2005
Posts: 45
Location: Noida

PostPosted: Wed Sep 20, 2006 12:46 pm    Post subject: Re: Want to copy an input file with VB to another file with
Reply with quote

Hi ,

I think the problem is with not considering the RDW length. In my opinion you should leave the first 4 bytes and then start from the 5th byte and then provide the positions accordingly and then it might work.

Thanks
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


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