Say I have a file with 12 records. Each record has the name
of the month. I have to append data in these 12 records
into 1 record. How is it possible?
Answers were Sorted based on User's Feedback
Answer / priya
Read the file. Save the 1st record into output record after
calc its length. Say move in(1:len) to out(1:len), move
in(1:len) to out(len:len2) and so on. Write the out record
into output file.Correct me if am wrong.
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / wing
Create an array then redefine it as a field that is long
enough to accommodate them all, then write the long field.
Is This Answer Correct ? | 2 Yes | 0 No |
how can you check if a file is empty using jcl?
How do you create a temporary dataset?
Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?
What is the difference between the JOBLIB and the STEPLIB statements?
What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?
Is stepname is a MUST and should be unique also for each JOBSTEP ? or system can supply the stepname for a step which is not given a name by the programmer ?
How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
What statement can be used to send data to another mvs jes3 node?
how are instream data terminated?
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*
which parameter is used to check the syntax of a jcl without executing it?
What are the differences between JES2 & JES3 ?