I have an input file of 50 record length and fixed block.
Code:
WER405I SORTOF02 : DATA RECORDS OUT 0
WER405I SORTOF03 : DATA RECORDS OUT 0
WER405I SORTOF04 : DATA RECORDS OUT 2
WER405I SORTOF05 : DATA RECORDS OUT 18
I need an output file like: rec length 50 and FB
Code:
END 0000000000 0000000000 0000000002 0000000018
Could anyone help me with a sort card to achieve this?
And I dont know how the spaces are getting deleted while copying the code...Also suggest me how to paste the mainframe display as such.
Thanks!
Above the box where you type your question, there are a few buttons (B, i, u and so on). "Code" is the button you need: click on Code, paste your screen as text, then click again on Code. Alternatively, select some text then click on Code. All selected text will be within Code tags.
About your other question, here is the beginning of the answer:
Code:
//* ******************************************* */
//* LOAD TEMPORARY FILE WITH TEMPORARY DATA */
//* ******************************************* */
//STEP01 EXEC PGM=IEBGENER
//SYSUT1 DD *
WER405I SORTOF02 : DATA RECORDS OUT 0
WER405I SORTOF03 : DATA RECORDS OUT 0
WER405I SORTOF04 : DATA RECORDS OUT 2
WER405I SORTOF05 : DATA RECORDS OUT 18
//SYSUT2 DD DISP=(NEW,PASS,DELETE),DSN=&INP,
// DCB=(RECFM=FB,LRECL=80)
//* ******************************************* */
//* JOIN LINES */
//* ******************************************* */
//STEP02 EXEC PGM=SYNCTOOL
//TOOLMSG DD SYSOUT=*
//SSMSG DD SYSOUT=*
//INP DD DISP=(OLD,DELETE),DSN=&INP
//OUT DD SYSOUT=*
//TOOLIN DD *
RESIZE FROM(INP) TO(OUT) TOLEN(60) USING(CTL1)
//CTL1CNTL DD *
INREC BUILD=(41,10)
//* ******************************************* */
Now,Syncsort did not provide documentation for SYNCTOOL (but it is there and you should try it) but you could google for "ICETOOL DOCUMENTATION" and find something interesting.