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 add sequence number for VB record length file?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
vicharapusrinu
Warnings : 1

New User


Joined: 04 Dec 2006
Posts: 63
Location: Hyderabad

PostPosted: Mon Sep 15, 2014 6:20 pm    Post subject: How to add sequence number for VB record length file?
Reply with quote

Hi All,

May I know how I can add sequence number at 8206 th position of my VB file.

My VB file is having max length 8205.

I am using Syncsort.

Thanks
Srini
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: Mon Sep 15, 2014 6:23 pm    Post subject:
Reply with quote

It is usual practice to insert the sequence number at the start of VB files.
Back to top
View user's profile Send private message
vicharapusrinu
Warnings : 1

New User


Joined: 04 Dec 2006
Posts: 63
Location: Hyderabad

PostPosted: Mon Sep 15, 2014 6:51 pm    Post subject:
Reply with quote

My file(VB) has 8205 length.

When I am trying add sequence number at end/start of the data set it is giving error


Code:
SYSIN :                                                               
  SORT FIELDS=COPY                                                   
  OUTREC FIELDS=(1,4,5:SEQNUM,5,ZD,5,8205)                           
WER276B  SYSDIAG= 283592, 1458670, 1458670, 1169100                   
WER164B  8,792K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,   
WER164B     0 BYTES RESERVE REQUESTED, 920K BYTES USED               
WER146B  104K BYTES OF EMERGENCY SPACE ALLOCATED                     
WER108I  SORTIN   : RECFM=VBM  ; LRECL=  8205; BLKSIZE= 27998         
WER073I  SORTIN   : DSNAME=FNCCSTN.QTRSTMQR.IMF2.OND.G0031V00         
WER230A  OUTREC   FIELD OUTSIDE RANGE                                 
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                         
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE   





Code:
SYSIN :                                                             
  SORT FIELDS=COPY                                                 
  OUTREC FIELDS=(5,8205,8206:SEQNUM,5,ZD),CONVERT                   
WER276B  SYSDIAG= 261968, 2725375, 2725375, 5557425                 
WER164B  8,792K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED, 
WER164B     0 BYTES RESERVE REQUESTED, 920K BYTES USED             
WER146B  104K BYTES OF EMERGENCY SPACE ALLOCATED                   
WER108I  SORTIN   : RECFM=VBM  ; LRECL=  8205; BLKSIZE= 27998       
WER073I  SORTIN   : DSNAME=FNCCSTN.QTRSTMQR.IMF2.OND.G0031V00       
WER230A  OUTREC   FIELD OUTSIDE RANGE                               
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                       
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE                       
                 


Thanks
Srini
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Sep 15, 2014 7:08 pm    Post subject: Reply to: How to add sequence number for VB record length fi
Reply with quote

Quote:
May I know how I can add sequence number at 8206 th position of my VB file.


adding a field (whatever kind it might be ) at the end of a variable record will make it a FIXED length record of the maximum length,
nullifying the objective of having a VARIABLE length record
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: Mon Sep 15, 2014 7:37 pm    Post subject:
Reply with quote

Not sure if it will work as I'm not on a mainfrane at this contract

Instead of
Code:

  SORT FIELDS=COPY                                                   
  OUTREC FIELDS=(1,4,5:SEQNUM,5,ZD,5,8205)


try
Code:

  SORT FIELDS=COPY                                                   
  OUTREC FIELDS=(1,4,5:SEQNUM,5,ZD,10:5)


Fairly sure that by just giving the start position of 5 and no length it will include the data until EOR
Back to top
View user's profile Send private message
vicharapusrinu
Warnings : 1

New User


Joined: 04 Dec 2006
Posts: 63
Location: Hyderabad

PostPosted: Mon Sep 15, 2014 10:05 pm    Post subject: Reply to: How to add sequence number for VB record length fi
Reply with quote

Hi Expat

Thanks for your post, it is working fine, but sequence number is coming till 4 th position and 5 th digit is coming as junk. I am expecting 5 digits of sequence number with out any junk value

I have got below output.
Code:
----+----1---
0001!..L
0002!. L
0003!.OL
0004!..L

Thanks
Srini.
Back to top
View user's profile Send private message
mistah kurtz

Active User


Joined: 28 Jan 2012
Posts: 268
Location: Room: TREE(3). Hilbert's Hotel

PostPosted: Tue Sep 16, 2014 3:55 pm    Post subject:
Reply with quote

I got the desired results with the sort card that expat provided. Can you post the complete SYSOUT from your job?
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 -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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