Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us