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
 
construct a file for mainframe from excel (.csv)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
danylele74

New User


Joined: 03 Jul 2014
Posts: 27
Location: Italy

PostPosted: Tue Feb 03, 2015 7:32 pm    Post subject: construct a file for mainframe from excel (.csv)
Reply with quote

Hi, i have this file imported from a .CSV

From this format

Code:

----+----1----+----2----+----3-
*******************************
05034;BA135;;;;
05034;BA200;;;;
05034;BA250;;;c/cc;
05034;BA520;;;c/cc;
05034;BA560;;;Finanziamento;
05034;BA920;001;CONTI CORRENTI;;
05034;BA920;001;CONTI CORRENTI;;
05034;BA920;001;CONTI CORRENTI;;



i need in this format:

Code:

----+----1----+----2----+----3-
*******************************
05034;BA135;   ;              ;             ;
05034;BA200;   ;              ;             ;
05034;BA250;   ;              ;c/c          ;
05034;BA520;   ;              ;c/c          ;
05034;BA560;   ;              ;Finanziamento;
05034;BA920;001;CONTI CORRENTI;             ;
05034;BA920;001;CONTI CORRENTI;             ;
05034;BA920;001;CONTI CORRENTI;             ;




How can i do? Can you halp me?
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7312

PostPosted: Tue Feb 03, 2015 8:31 pm    Post subject: Reply to: construct a file for mainframe from excel (.csv)
Reply with quote

Use your SORT product with PARSE (several of them).
Back to top
View user's profile Send private message
danylele74

New User


Joined: 03 Jul 2014
Posts: 27
Location: Italy

PostPosted: Tue Feb 03, 2015 8:35 pm    Post subject:
Reply with quote

What ?
Sort? I don't need to sort it.
Can you give me an example that explains how to format the file?
Thank you.
Back to top
View user's profile Send private message
danylele74

New User


Joined: 03 Jul 2014
Posts: 27
Location: Italy

PostPosted: Tue Feb 03, 2015 9:38 pm    Post subject:
Reply with quote

this is my jcl:

Code:

//S1    EXEC  PGM=ICEMAN                       
//SYSOUT   DD SYSOUT=*                         
//SORTIN   DD DISP=SHR,DSN=TNPH.FORME.TECNICHE
//SORTOUT  DD SYSOUT=*                         
//SYSIN    DD *                               
  OPTION COPY                                 
  OUTFIL PARSE=(%01=(ENDBEFR=C';',FIXLEN=5),   
                %02=(ENDBEFR=C';',FIXLEN=5),   
                %03=(ENDBEFR=C';',FIXLEN=3),   
                %04=(ENDBEFR=C';',FIXLEN=25), 
                %05=(ENDBEFR=C';',FIXLEN=7),   
                %06=(ENDBEFR=C';',FIXLEN=4),   
                %07=(ENDBEFR=C';',FIXLEN=100),
                %08=(ENDBEFR=C';',FIXLEN=60), 
                %09=(ENDBEFR=C';',FIXLEN=3),   
                %10=(ENDBEFR=C';',FIXLEN=60), 
                %11=(ENDBEFR=C';',FIXLEN=3),   
                %12=(ENDBEFR=C';',FIXLEN=60), 
                %13=(ENDBEFR=C';',FIXLEN=3),   
                %14=(ENDBEFR=C';',FIXLEN=60)),
  BUILD=(1:%01,                               
         6:%02,                               
        11:%03,                               
        14:%04,                               
        39:%05,                               
        46:%06,                               
        50:%07,                               
       150:%08,                               
       210:%09,                               
       213:%10,                               
       273:%11,                               
       276:%12,                               
       336:%13,                               
       339:%14)                               
/*                                           


but there is an error that i don't understand:

Code:

ICE251A 9 MISSING RDW OR DATA FOR SORTOUT : REASON CODE 05, IFTHEN 0           
ICE751I 0 C5-I21470 C6-BASE   C7-K96411 C8-I15445 E9-BASE   E7-I12417           
ICE052I 3 END OF DFSORT                                                         
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7312

PostPosted: Tue Feb 03, 2015 9:49 pm    Post subject: Reply to: construct a file for mainframe from excel (.csv)
Reply with quote

I wasn't suggesting that you SORT it, I was suggesting that you use your SORT product. And you are. ICEMAN is DFSORT.

Your input file is variable, so your output file must be variable unless you arrange otherwise.

OUTFIL VTOF will be what you want.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File transfer issue with end of line ... VINAY PALLELA TSO/ISPF 4 Thu Nov 14, 2019 12:01 am
No new posts Sort to construct single record from ... Deepti_R SYNCSORT 3 Wed Nov 13, 2019 12:14 am
No new posts File compare, where file has header a... VINAY PALLELA SYNCSORT 8 Thu Nov 07, 2019 5:05 pm
No new posts Enabling Crosshair cursor in mainframe priya_t23 TSO/ISPF 2 Wed Nov 06, 2019 11:29 am
No new posts Convert mainframe data to .csv format... karan_reddy DFSORT/ICETOOL 10 Sat Nov 02, 2019 2:09 am

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