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
 

 

How to insert a string/value into a VB file

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

New User


Joined: 06 Apr 2005
Posts: 16

PostPosted: Mon Jun 11, 2007 9:05 pm    Post subject: How to insert a string/value into a VB file
Reply with quote

Need help on how to insert a string/value into a VB file.
I'm using OUTREC FIELDS cmd to insert, but its giving error.

Here is my cmd
Code:

  OPTION COPY
  OUTREC FIELDS=(1:1,4,5:5,22,C'008002324930',38:27,549)


Thanks
Kalyan
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 Jun 11, 2007 9:30 pm    Post subject:
Reply with quote

Quote:
its giving error


Please show the //SYSOUT messages so we don't have to guess what the error is.
Back to top
View user's profile Send private message
Mohankalyan99

New User


Joined: 06 Apr 2005
Posts: 16

PostPosted: Mon Jun 11, 2007 11:48 pm    Post subject:
Reply with quote

Here is the Sysout of the error:

ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED
ICE000I 1 - CONTROL STATEMENTS FOR 5740-SM1, DFSORT REL 14.0 - 10:31 ON MON JUN
SORT FIELDS=COPY
OUTREC FIELDS=(1:1,4,5:5,22,C'008002324930',38:27,549)
ICE201I 0 RECORD TYPE IS V - DATA STARTS IN POSITION 5
ICE126A 0 INCONSISTENT *OUTREC IFTHEN 0 REFORMATTING FIELD FOUND
ICE052I 3 END OF DFSORT
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Jun 12, 2007 12:41 am    Post subject:
Reply with quote

Mohankalyan99

Quote:
ICE126A 0 INCONSISTENT *OUTREC IFTHEN 0 REFORMATTING FIELD FOUND

This may be because of overlapping column's.

Just check with this
Code:
OPTION COPY
  OUTREC FIELDS=(1:1,4,5:5,22,C'008002324930',39:27,549)
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 Jun 12, 2007 12:58 am    Post subject:
Reply with quote

Mohankalyan99,

Krisprems is right. The problem is that your constant ends in output position 38, but you specified 38: for the next output position. The next output position should start at 39, but if you want the input positions from 27 to the end of the record to follow your constant, you should use 39:27 rather than 39:27,549. If you use 39:27,549 and you have any "short" input records, DFSORT will terminate. With 39:27 (no length) DFSORT will not terminate. So the correct OUTREC statement would be:

Code:

  OUTREC FIELDS=(1:1,4,5:5,22,C'008002324930',39:27)
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Jun 12, 2007 1:03 am    Post subject:
Reply with quote

thanks for correcting me frank,
i was not aware of DFSORT terminating because of SHORT input records:-(
Back to top
View user's profile Send private message
Mohankalyan99

New User


Joined: 06 Apr 2005
Posts: 16

PostPosted: Tue Jun 12, 2007 4:18 am    Post subject: Re: How to insert a string/value into a VB file
Reply with quote

Did a small mistake..
After using 39 as output position, it worked.

Thanks for all who gave inputs to me.
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 Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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