Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Convert VBA file to FB!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
Vignesh Sid

New User


Joined: 04 Sep 2017
Posts: 43
Location: India

PostPosted: Mon Dec 03, 2018 1:27 pm    Post subject: Convert VBA file to FB!
Reply with quote

Hi all,

I a trying to convert a VBA file to FB by extracting only selective records.

Input file: RECFM=VBA;LRECL= 125;

Code:

NONVSAM ------- XX.W.TOTALS.OUTPUT


Output file: RECFM=FB;LRECL= 26;
XX.W.TOTALS.OUTPUT

I used the below sort card:

Code:

  SORT FIELDS=COPY                                           
  OUTFIL FNAMES=SORTOUT,INCLUDE=(5,7,CH,EQ,C'NONVSAM'),VTOF,
  BUILD=(1:18,26)                                           


But I get an empty output file. Could anyone let me know for your thoughts!

Thanks,
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8792
Location: Welsh Wales

PostPosted: Mon Dec 03, 2018 2:02 pm    Post subject:
Reply with quote

Why not show the sysout and give us a clue ? - - - No info = less help

But as your control statements look OK I would guess that the location of the selection may be off
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1206
Location: Bangalore,India

PostPosted: Mon Dec 03, 2018 2:05 pm    Post subject:
Reply with quote

Hello Viky,

It should work.. I did not see any issue here ...unless file is not variable length.

Let us know your findings.
Back to top
View user's profile Send private message
Vignesh Sid

New User


Joined: 04 Sep 2017
Posts: 43
Location: India

PostPosted: Mon Dec 03, 2018 3:06 pm    Post subject:
Reply with quote

Thank you expat and Guptae. Yes the location for the selection did not give me results.
I changed the code as follows and got the desired result.
Code:

SORT FIELDS=COPY                                           
  OUTFIL FNAMES=SORTOUT,INCLUDE=(6,7,CH,EQ,C'NONVSAM'),VTOF,
  BUILD=(1:22,26)   


Thanks again for confirming that the syntax is correct!

Regards,
Viky.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1056
Location: Dublin, Ireland

PostPosted: Mon Dec 03, 2018 3:12 pm    Post subject:
Reply with quote

I suspect the offset is not allowing for the "A" in VBA - which is the ANSI control character in the first column of the report. Try offset 6 rather than 5 (RDW + ANSI control = 5) for the 'NONVSAM'.

Garry.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2482
Location: @my desk

PostPosted: Mon Dec 03, 2018 6:46 pm    Post subject:
Reply with quote

If you are attempting to process the LISTCAT output to extract a data set name, you could also override the output RECFM/LRECL in the LISTCAT step to DCB=(LRECL=80,RECFM=FB..., so you dont have to convert it later on, and you have the required data within those positions.
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 the name in the PS file and creat... dharmaraok DFSORT/ICETOOL 9 Wed Apr 01, 2020 10:43 am
No new posts DFSORT Output file order query A_programmers DFSORT/ICETOOL 1 Thu Mar 26, 2020 11:59 pm
This topic is locked: you cannot edit posts or make replies. DFSORT-How to convert ZD to ZS in DFSORT useit DFSORT/ICETOOL 2 Thu Mar 26, 2020 10:43 am
No new posts Error Creating KSDS file, REASON CODE... sandeep prajapati JCL & VSAM 8 Tue Mar 24, 2020 12:05 pm
No new posts Convert a packed decimal value to zon... Dinesh Mani DB2 6 Mon Mar 16, 2020 6:02 pm

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