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

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


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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 Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Sep 18, 2006 8:44 pm
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
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 Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Sep 19, 2006 8:49 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top