i have a string of 80 chars i want to replace 4th char with "a"?
Answers were Sorted based on User's Feedback
Answer / krishna
Move the sting in to a variable Eg to WS-String
then
Move 'a' to ws-string(4:1)
hope this will work
Is This Answer Correct ? | 16 Yes | 0 No |
Answer / mchava
first move string 4th position to one variable
ex: string(4:1)=ws-string
then use inspect and replace words
ex: INSPECT STRING REPLACING WS-STRING BY 'a'
BEFORE SPACE/'.'/(end of the sting).
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / deepak dada, jaipur
not sure but
inspect string replacing string(4:1) by 'a'
might work
Is This Answer Correct ? | 0 Yes | 3 No |
File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3
How to get the last but one duplicate record of the file using Sort?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
how would you create a temporary dataset? And where will you use them?
i created one base gdg with lrecl = 100 , now i need to create versions with different lrecl =150,200 can it be possible to create like tht ?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
TIME parameter in JOB statement or EXEC statement specifies What type of time (CPU time or execution time)?
how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data from mainprogram but i need it from JCL directly
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
What are the differences between JES2 & JES3 ?
What is concatenating?
How do you designate a comment in JCL?