I have earlier written a file (column-wise) on mainframe with SAS program. I want to achieve similar with Java.
SAS program:
FILENAME fileReference ftp "'ThreadNum.ThreadType.NEW.AplicationFlag.J&feed_dt.'"
          RCMD='SITE TR PRI=20 SEC=20 RECFM=F LRECL=84'  HOST='host'
          USER="&user."  PASS="&pass."
          ;
  DATA _null_;
         SET MyDataSet ;
         name=0;
         pro='000';
         format custid 05. ;
         action='A ';
         flagcnt='01';
         FILE  fileReference LRECL=84 RECFM=f;
         PUT @01 num13    s370fpd07.
             @08 names    370fpd05.
             @13 pro      $ebcdic03.
             @16 action   $ebcdic02.
             @18 flag     $ebcdic02.
             @56 flagcnt  $ebcdic02.
             @70 num15    s370ff015.
         ;
       RUN;
So basically, my problems are:
- Converting - asciivalue to- ebcdicand- s370fpdformat. ( I understand, s370fpd is same as COMP3)
- Writing a file on mainframe server directly without creating it to local server. I can skip this problem and even if we first create a file on local with desired encoding of - asciito- ebcidicand packed- decimaland- ftpit to mainframe - I am good.
 
     
    