SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
2731In a JCL if previous steps return code is greater than 0 or 4 then the next step will not execute. But the job will be successfull with the maximum return code. How can we reset this maximum return code to '0' regardless of return codes of any steps?
4 27828If my file contains 100,000 records and job abended at 55,000th records processing then how can i restart job from that record onward by ignoring that record. I can not edit the file as file size is big and it is getting browse substituted?
TCS,
5 14199I found in one of the jcl, gdg version being mentioned as : abc.def.ghi(-0) Can anyone tell me how referring the version as (-0) is different from referring it as (0)
2 6645How is it possible to do a cross-sysplex copy of a PDS dataset by running one JCL on the target sysplex? I tried to use IEBCOPY with SUBSYS & CSM as follows: //CSMTRAN1 EXEC PGM=IEBCOPY //SYSPRINT DD SYSOUT=* //SYSUT1 DD DSN=PDS-Dataset-name-from,DISP=SHR, // SUBSYS=(CSM,'SYSPLEXNAME-FROM') //SYSUT2 DD DSN=PDS-Dataset-name-to,DISP=OLD, // SUBSYS=(CSM,SYSPLEXNAME-TO') //SYSIN DD DUMMY This did not work. I always get the following error "IEB1071E DD NAME SYSUT1 IS SUPPOSED TO BE A PARTITIONED DATA SET BUT IT HAS NO DIRECTORY. EXPECT A TERMINAL I/O ERROR. (DS1LSTAR=X'000000' DS1DSORG=X'0000' JFCDSORG=X'0200') " The source dataset is a catalogued pds dataset with many entries. The target dataset is allocated in the same job some lines before the transfer. I got an example like this for PS datasets with IEBGENER. But for PO datasets there should be a similar possibility...
4113How can we increase the size of an existing PDS to include more no. of modules. I tried the answer posted by Jagan(TSO PDS 'pds name') but did not find it working. The answer posted by kamal i know very well. Please suggest me a answer so that we don't need to delete the existing PDS and still we can change the size as well.
10 35920I have two input SORTIN files and We need to create one SORTOUT file which contains data of both input files. What is the SortCard for this?. Suppose the length of the both files are different, then How we do it? Please reply ASAP
CSC,
4 33373can u tell me and give me an example : how to code a program checkpoint , restart, and tell me when and where i have to run 2 programs...Thanks
1 13398could you give me an example how, where i code CHECKPOINT and restart...I need and example....thanks..
5 20803How do u know if a start command intiated a transaction or a terminal intiated a transaction
2 16699How do you receive data passed through JCL parm parameter in a Natural program ? How Data definition is defined in the program?
5 16674
Explain the function of the load command?
What is collection in db2 bind?
How are the next sentence and continue different from each other?
How do I change the column size in db2?
What are different data types in cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Define temporary storage?
Why do we bind in db2?
How you can characterize tables in cobol?
how to pass the parameters from jcl to assembler pgm?
how you can access an uncataloged dataset in a JCL?
What does a store statement do?
How to find or access the current level of a gdg?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
What is dbd?